陈鹏铭 ac63ce6cb5 首次提交 1 年之前
..
.travis.yml ac63ce6cb5 首次提交 1 年之前
LICENSE ac63ce6cb5 首次提交 1 年之前
README.md ac63ce6cb5 首次提交 1 年之前
index.js ac63ce6cb5 首次提交 1 年之前
package.json ac63ce6cb5 首次提交 1 年之前
test.js ac63ce6cb5 首次提交 1 年之前

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