aswi2020vldc-gitlab/templetes/node_modules/stream-shift/README.md @ 5fded919
1 | 3a515b92 | cagy | # stream-shift
|
---|---|---|---|
2 | |||
3 | Returns the next buffer/object in a stream's readable queue |
||
4 | |||
5 | ```
|
||
6 | npm install stream-shift |
||
7 | ```
|
||
8 | |||
9 | [](http://travis-ci.org/mafintosh/stream-shift) |
||
10 | |||
11 | ## Usage
|
||
12 | |||
13 | ``` js |
||
14 | var shift = require('stream-shift') |
||
15 | |||
16 | console.log(shift(someStream)) // first item in its buffer |
||
17 | ```
|
||
18 | |||
19 | ## Credit
|
||
20 | |||
21 | Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6 |
||
22 | |||
23 | ## License
|
||
24 | |||
25 | MIT |