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-clonejesusdemojamuskalimimport-npm-to-mongodbhypercore-indexhypercore-reduceimshyperdrive-count-importhyperdrive-swarmhubot-budahot-zone-vuehlsrecordgrid-component-react-ex-1guruwayguruway.jshelp-widgetiocanelitepie-datepicker-gabelevel-tail-streamm2m-chartjs-plugin-crosshairl2forlernakrown_login_library@tillschweneker/ckeditor5-build-strapi-wysiwyg-markdown@udooku/react-image-comparison-slider@tonysusi/vapid@thedoctor0/vuex-shared-mutations@vitali_shcherbina/styled-lib@zh0st/evm-chains@zebracompany/f_editora_react_reflux_demob2x-utilsarifbudixzap-vue-captchaappcharge-checkout@openpolitica/matomo-next@oriduk/ckeditor5-rebuild-musicanote@oriduk/ckeditor5-rebuild-oriduk@hproinformatica/functions@hyperdivision/heimdall@innodata/vue-v3-ya-metrika@inesfidalgo/forge@inti-ar/evm-chains@icetee/react-recaptcha-v3@ikon-x/ckeditor5-custom-build-for-irrosoft@podlubnaja/ui-kit@poondestroyer/sig@percent/percent-api-hooksfrdrk-js-semaphoreforminput-ui-libfn-lib-examplefork-react-ffmpeg@shivarajapple/first-librarydwebs-coreeasyplayer-myeditorjs-alerticonsfastlion-picture-viewerfirst-app-lyfuciflexelflowable-bpmn-modeler@pqmcgill/dat-node@blkmarketco/components-library@carhoo/widget-dealers@beldore/react-otp-inputcampus-carosellocampus1campus2campus3campus4car-cmp-2caropcarop2carop3carop4carosello-campus-opacitacarosello-tribuscarosello-tribus-2connex_ram00nez
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

10 years ago

1.1.1

10 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