JSPM

stream-shift

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21748779
  • Score
    100M100P100Q223846F
  • License MIT

Returns the next buffer/object in a stream's readable queue

Package Exports

  • stream-shift
  • stream-shift/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stream-shift) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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