Turns a stream into a callback.
$ npm install stream-callback --save
var rs = new Readable({objectMode: true})
rs.push({foo: 'bar'})
rs.push({foo: 'bar'})
rs.push(null)
streamCb(rs, console.log)
// => { '0': undefined, '1': [ { foo: 'bar' }, { foo: 'bar' } ] }
Required
Type: stream
object
Type: object
Type: object
Required
Type: function
MIT © Kiko Beats