copy-stream

1.0.0 • Public • Published

copy-stream

A simple module to copy streams.

var fs = reqruire("fs");
var copy_stream = require("copy-stream");
var file_stream = fs.createReadStream("path/to/my/file.txt");
var make_copy = copy_stream(file_stream);
 
setTimeout(function () {
  make_copy().pipe(process.stdout);
}, 2000);

if this documentation in not enough, please tweet me at twitter.

Dependents (0)

Package Sidebar

Install

npm i copy-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • neppord