rebuffer
v1.0.1
Published
re-buffer stream to specified chunk length
Downloads
791
Readme
rebuffer
A transform stream that buffers internally and emits chunks of given length.
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 [email protected]
License
MIT