first-n-stream
A passthough objectMode stream that diverts the first n entries into either another stream or a callback
npm install --save first-n-stream
API
var FirstN = ; var withCallback = 5 { // resp will be an array of the first 5 items}; something; var withStream = 5 streamThatWillGetTheFirst5; something;
license
MIT