Skip to content

Instantly share code, notes, and snippets.

@w7089
Created Jan 10, 2019
Embed
What would you like to do?
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