Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

slice-stream2

jviotti2kMIT2.0.1

Pipe data through a stream until some fixed length is reached, then callback.

slice, fixed, length, stream, split

readme

slice-stream2

Pipe data through a stream until some fixed length is reached.

npm version dependencies Build Status Build status

Installation

$ npm install --save slice-stream2

Example

var fs = require('fs');
var sliceStream = require('slice-stream2');

fs.createReadStream('my/file.txt')
  .pipe(sliceStream({ bytes: 5 }))
  .pipe(process.stdout);

License

MIT