1.2.3 • Published 7 years ago

stream-each v1.2.3

Weekly downloads
10,931,953
License
MIT
Repository
github
Last release
7 years ago

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

Related

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

mississippivuedragdropuploadimageskilli8n-react-native-fast-image@cashremit/cr-streamline-iconsbb-chat@frxf/frxf@fundefund/funde_ckgql_din_mod@l1nyanm1ng/react-picture-viewerjs4cytoscape@infinitebrahmanuniverse/nolb-stream-@saaspe/components@everything-registry/sub-chunk-2834test-carosello-campusweb-to-datvue-button-test1webchesupercluster-googlemaps-adapter-clonestestapasuperlevelsvelte-component-libtextfield-samplevue-compmentvue-dev-clone@ct-note/table@ct-note/warning@ct-note/image@ct-note/inline-code@ct-note/list@ct-note/marker@ct-note/paragraph@ct-note/quote@ct-note/simple-image@ct-note/checklist@ct-note/code@ct-note/delimiter@ct-note/embed@ct-note/header@cube-design/react@blkmarketco/components-library@beldore/react-otp-input@percent/percent-api-hooks@rbc-public/react-selectable-fastjesusdemojamuskalim@simstudio/htmldiffdfeuk-frontenddfeuk-frontend-manualstnenopmoc-iustock-ticker-react-widgettingzi-vuepresstinymce-plugin-toyu-library@artiso-solutions/vue-html-to-paper@arielapaula/components@arielapaula/test@carhoo/widget-dealers@ddn/ddndriveyolowatchvue-v3-yandex-metrikaverify-img-codevformlmq@farvater/open-pedigree@hproinformatica/functions@icetee/react-recaptcha-v3@elsouza1985/react-org-chart@innodata/vue-v3-ya-metrika@kristoffertonning/vue-laravel-errors@krwhitley/neataptic@lego-js/tests@inti-ar/evm-chains@mafintosh/ims@meysam213/react-leaflet@ericmcornelius/ease@fabwcie/ckeditor5-preview@jimpick/dat-node@jimpick/hyperdrive@jimpick/hyperdrive-hyperdb-backend@jimpick/hyperdrive-legacy@jimpick/hyperdrive-next@jarrydark/editorsimplejs@kirrosh/pts@ikon-x/ckeditor5-custom-build-for-irrosoft@hyperdivision/heimdall@inesfidalgo/forge@react-18-pdf/root@pqmcgill/dat-node@safely-project/safely-ts@sackmanson/quill-image-uploader@openpolitica/matomo-next@poondestroyer/sig@podlubnaja/ui-kit@oriduk/ckeditor5-rebuild-oriduk@oriduk/ckeditor5-rebuild-musicanote@southcn/ckeditor5-build-inline@seculum/vue-dev-clone@stansaal/ckeditor5-custom-buildmississippi2miracle-webpack-tree-shakingmiguelcostero-ng2-toasty
1.2.3

7 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago