JSPM

slice-stream2

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 553
  • Score
    100M100P100Q99890F
  • License MIT

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

Package Exports

  • slice-stream2

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (slice-stream2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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