• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# stream-shift
2
3Returns the next buffer/object in a stream's readable queue
4
5```
6npm install stream-shift
7```
8
9[![build status](http://img.shields.io/travis/mafintosh/stream-shift.svg?style=flat)](http://travis-ci.org/mafintosh/stream-shift)
10
11## Usage
12
13``` js
14var shift = require('stream-shift')
15
16console.log(shift(someStream)) // first item in its buffer
17```
18
19## Credit
20
21Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6
22
23## License
24
25MIT
26