1.0.0 • Published 9 years ago

copy-stream v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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.