alert / js / node_modules / stream-shift /
@Réz István Réz István authored on 18 Nov 2021
..
.travis.yml first commit 3 years ago
LICENSE first commit 3 years ago
README.md first commit 3 years ago
index.js first commit 3 years ago
package.json first commit 3 years ago
test.js first commit 3 years ago
README.md

stream-shift

Returns the next buffer/object in a stream's readable queue

npm install stream-shift

build status

Usage

var shift = require('stream-shift')

console.log(shift(someStream)) // first item in its buffer

Credit

Thanks @dignifiedquire for making this work on node 6

License

MIT