陈鹏铭 ac63ce6cb5 首次提交 лет назад: 2
..
.travis.yml ac63ce6cb5 首次提交 лет назад: 2
LICENSE ac63ce6cb5 首次提交 лет назад: 2
README.md ac63ce6cb5 首次提交 лет назад: 2
index.js ac63ce6cb5 首次提交 лет назад: 2
package.json ac63ce6cb5 首次提交 лет назад: 2
test.js ac63ce6cb5 首次提交 лет назад: 2

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