You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
480 B

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