slice-stream
Pipe data through a stream until some fixed length is reached, then callback.
Installation
$ npm install slice-stream
Quick Example
End stream once a fixed length has been reached
var SliceStream = ;var streamBuffers = ; var ss = length: 5 { if !sliceEnd return this; this; return this; //signal end of data}; var sourceStream = ;sourceStream;var writableStream = ; sourceStream ; //Output//Piped data before pattern occurs: 'Hello'
License
MIT