slice-stream2

2.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    411
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    411
  • 2.0.0
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i slice-stream2

Weekly Downloads

414

Version

2.0.1

License

MIT

Last publish

Collaborators

  • jviotti