stream-shift-promise
v1.0.1
Published
Returns a promise that resolves to the next buffer/object from a readable stream.
Downloads
48
Readme
stream-shift-promise
Resolves a promise to the next buffer/object in a stream's readable queue
npm install stream-shift-promise
Usage
var shift = require('stream-shift-promise')
console.log(await shift(someStream)) // first item from stream
Credit
Thanks @mafintosh for writing stream-shift on which this based.
License
MIT