armansansd 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
..
.npmignore 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
.travis.yml 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
LICENSE 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
README.md 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
index.js 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
package.json 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
test.js 3424b1927b first commit %!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