Skip to content

Instantly share code, notes, and snippets.

@w7089
Created January 10, 2019 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w7089/3efc33fafbaf9764ff93d2d4e9e14ba4 to your computer and use it in GitHub Desktop.
Save w7089/3efc33fafbaf9764ff93d2d4e9e14ba4 to your computer and use it in GitHub Desktop.
writable.js
// const { Writable } = require('stream')
// const outStream = new Writable({
// write(chunk, encoding, callback) {
// console.log(chunk.toString());
// callback();
// }
// })
// process.stdin.pipe(outStream)
process.stdin.pipe(process.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment