cmy a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
..
.travis.yml a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
LICENSE a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
README.md a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
index.js a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
package.json a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos
test.js a6e36702ec 2023-3-1 %!s(int64=2) %!d(string=hai) anos

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