layui-js/node_modules/stream-shift
2017-08-21 08:50:25 +08:00
..
.npmignore clear 2017-08-21 08:50:25 +08:00
.travis.yml clear 2017-08-21 08:50:25 +08:00
index.js clear 2017-08-21 08:50:25 +08:00
LICENSE clear 2017-08-21 08:50:25 +08:00
package.json clear 2017-08-21 08:50:25 +08:00
README.md clear 2017-08-21 08:50:25 +08:00
test.js clear 2017-08-21 08:50:25 +08: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