slice-stream2
2.0.1 • Public • Published slice-stream2
Pipe data through a stream until some fixed length is reached.
![Build status](https://ci.appveyor.com/api/projects/status/00512q0em47rps6t/branch/master?svg=true)
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
Dependencies (1)
Dev Dependencies (5)
Package Sidebar
Install
Weekly Downloads