stream-shift-promise

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stream-shift-promise

Weekly Downloads

18

Version

1.0.1

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • xloem