1.0.1 • Published 10 years ago
identity-stream v1.0.1
IdentityStream
Smash a file into chunks and put it back together!
npm install identity-stream
Why?
Sometimes you need a default stream placeholder that doesn't modify anything
It is easy to use
var doSomethingStream = IsThereSomethingToDo() || new identityStream();
fs.createReadStream('file.txt')
.pipe(doSomethingStream)
.pipe(fs.createWriteStream('file-copy.txt');
License
MIT