stream-copy

v1.0.0
Copy writable streams to other writable streams.
stdio stderr stdout copy mirror stream capture pipe

stream-copy

Copy writable stream to multiple writable streams.

Installation

npm install --global stream-copy

Example

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...)

MIT Licensed

npm i stream-copy

Metadata

  • MIT
  • >= 0.8
  • Alex Mingoia
  • released 9/17/2013

Downloads

Maintainers