Opal-Estate-Pro/node_modules/stream-shift
2019-09-13 09:44:33 +07:00
..
.npmignore uapte 2019-09-13 09:44:33 +07:00
.travis.yml uapte 2019-09-13 09:44:33 +07:00
index.js uapte 2019-09-13 09:44:33 +07:00
LICENSE uapte 2019-09-13 09:44:33 +07:00
package.json uapte 2019-09-13 09:44:33 +07:00
README.md uapte 2019-09-13 09:44:33 +07:00
test.js uapte 2019-09-13 09:44:33 +07:00

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