陈鹏铭 0e441ebeb1 仓库创建 лет назад: 2
..
.travis.yml 0e441ebeb1 仓库创建 лет назад: 2
LICENSE 0e441ebeb1 仓库创建 лет назад: 2
README.md 0e441ebeb1 仓库创建 лет назад: 2
index.js 0e441ebeb1 仓库创建 лет назад: 2
package.json 0e441ebeb1 仓库创建 лет назад: 2
test.js 0e441ebeb1 仓库创建 лет назад: 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