Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

stream-each

Package Overview
Dependencies
2
Maintainers
3
Versions
10
Issues
File Explorer

Advanced tools

stream-each

Iterate all the data in a stream

    1.2.3latest

Version published
Maintainers
3
Weekly downloads
7,465,404
decreased by-19.35%

Weekly downloads

Readme

Source

stream-each

Iterate all the data in a stream

npm install stream-each

build status

Usage

var each = require('stream-each') each(stream, function (data, next) { console.log('data from stream', data) // when ready to consume next chunk next() }, function (err) { console.log('no more data') })

API

each(stream, iterator, cb)

Iterate the data in the stream by calling the iterator function with (data, next) where data is a data chunk and next is a callback. Call next when you are ready to consume the next chunk. Optionally you can call next with an error to destroy the stream

When the stream ends/errors the callback is called if provided

License

MIT

stream-each is part of the mississippi stream utility collection which includes more useful stream modules similar to this one.

FAQs

What is stream-each?

Iterate all the data in a stream

Is stream-each popular?

The npm package stream-each receives a total of 6,230,385 weekly downloads. As such, stream-each popularity was classified as popular.

Is stream-each well maintained?

We found that stream-each demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 30 Jul 2018

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc