Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…
Copy writable streams to other writable streams.
Copy writable stream to multiple writable streams.
npm install --global stream-copy
Copy process.stdout to a file:
var stream = require('stream');stream.copy = require('stream-copy').copy;stream.copy(process.stdout, fs.createWriteStream(filename));
You can copy to multiple streams:
stream.copy(origin, stream1, stream2...)
What happens when npm’s amazing community gets together to share with one another? Buy a ticket »
how? learn more