yrik 0fb20a58e3 提交 před 4 roky
..
.travis.yml eec7f449c9 first commit před 4 roky
LICENSE eec7f449c9 first commit před 4 roky
README.md eec7f449c9 first commit před 4 roky
index.js eec7f449c9 first commit před 4 roky
package.json 0fb20a58e3 提交 před 4 roky
test.js eec7f449c9 first commit před 4 roky

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