Handy_Cao 6934691a7d 代码提交; hace 3 años
..
.travis.yml 6934691a7d 代码提交; hace 3 años
LICENSE 6934691a7d 代码提交; hace 3 años
README.md 6934691a7d 代码提交; hace 3 años
index.js 6934691a7d 代码提交; hace 3 años
package.json 6934691a7d 代码提交; hace 3 años
test.js 6934691a7d 代码提交; hace 3 años

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