rebuffer

re-buffer stream to specified chunk length

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
rebuffer
011.0.19 years ago9 years agoMinified + gzip package size for rebuffer in KB

Readme

rebuffer
A transform stream that buffers internally and emits chunks of given length.
NPM Package Build Status Dependencies

Installation

$ npm install rebuffer --save

Usage

var rebuffer = require('rebuffer');

fs.readReadStream('bigfile.txt')
  .pipe(rebuffer(1024 * 1024)) // will buffer input chunks, and emit 1mb chunks out
  .pipe(fs.createWriteStream('foo.txt'));

Author

Vladimir Popov

License

MIT