rebuffer

1.0.1 • Public • Published

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 rusintez@gmail.com

License

MIT

/rebuffer/

    Package Sidebar

    Install

    npm i rebuffer

    Weekly Downloads

    208

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • rusintez