npm.io
1.0.1 • Published 11 years ago

identity-stream

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
2

IdentityStream

alt-text

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

Keywords