A transform stream that buffers internally and emits chunks of given length.
$ npm install rebuffer --save
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'));
Vladimir Popov rusintez@gmail.com
MIT