{"_id":"stream-each","_rev":"93987","name":"stream-each","description":"Iterate all the data in a stream","dist-tags":{"latest":"1.2.3"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"time":{"modified":"2021-06-03T10:31:16.000Z","created":"2015-10-18T20:41:57.778Z","1.2.3":"2018-07-30T17:59:04.760Z","1.2.2":"2017-10-10T19:04:03.593Z","1.2.1":"2017-10-10T18:39:13.414Z","1.2.0":"2016-11-06T10:18:04.958Z","1.1.2":"2016-02-04T15:43:23.065Z","1.1.1":"2016-01-26T00:58:43.986Z","1.1.0":"2015-10-18T21:15:26.755Z","1.0.2":"2015-10-18T20:48:08.056Z","1.0.1":"2015-10-18T20:45:34.438Z","1.0.0":"2015-10-18T20:41:57.778Z"},"users":{"coalesce":true,"joeh":true,"morewry":true},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/stream-each.git"},"versions":{"1.2.3":{"name":"stream-each","version":"1.2.3","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0","stream-shift":"^1.0.0"},"devDependencies":{"ndjson":"^1.5.0","standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"ccc17f5e2c444cb9f0befee545f326eb2ad69b5a","_id":"stream-each@1.2.3","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"ebe27a0c389b04fbcc233642952e10731afa9bae","size":2765,"noattachment":false,"key":"/stream-each/-/stream-each-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.2.3.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-each_1.2.3_1532973544684_0.4037271324645715"},"_hasShrinkwrap":false,"publish_time":1532973544760,"_cnpm_publish_time":1532973544760},"1.2.2":{"name":"stream-each","version":"1.2.2","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0","stream-shift":"^1.0.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"f2fdc9b58913253325f449b25201489e98003066","_id":"stream-each@1.2.2","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"8e8c463f91da8991778765873fe4d960d8f616bd","size":2650,"noattachment":false,"key":"/stream-each/-/stream-each-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.2.2.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-each-1.2.2.tgz_1507662242567_0.13970780046656728"},"directories":{},"publish_time":1507662243593,"_cnpm_publish_time":1507662243593,"_hasShrinkwrap":false},"1.2.1":{"name":"stream-each","version":"1.2.1","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0","stream-shift":"^1.0.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"3722076dad239f119edd86cc467695fca0edf77c","_id":"stream-each@1.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"79a894888f35b580ef0462232bfd25fa06274e3e","size":2537,"noattachment":false,"key":"/stream-each/-/stream-each-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.2.1.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-each-1.2.1.tgz_1507660752392_0.9997272100299597"},"directories":{},"publish_time":1507660753414,"_cnpm_publish_time":1507660753414,"_hasShrinkwrap":false},"1.2.0":{"name":"stream-each","version":"1.2.0","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0","stream-shift":"^1.0.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"2968bf4f195641f5eda594c781a0b590776bc702","_id":"stream-each@1.2.0","_shasum":"1e95d47573f580d814dc0ff8cd0f66f1ce53c991","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"1e95d47573f580d814dc0ff8cd0f66f1ce53c991","size":2501,"noattachment":false,"key":"/stream-each/-/stream-each-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.2.0.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-each-1.2.0.tgz_1478427484733_0.5437065886799246"},"directories":{},"publish_time":1478427484958,"_cnpm_publish_time":1478427484958,"_hasShrinkwrap":false},"1.1.2":{"name":"stream-each","version":"1.1.2","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"f0ef91ddbe95688e376598b9959cab463c733b57","_id":"stream-each@1.1.2","_shasum":"7d4f887f24c721ab0155b12a34263d8732ad8d39","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"7d4f887f24c721ab0155b12a34263d8732ad8d39","size":2485,"noattachment":false,"key":"/stream-each/-/stream-each-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.1.2.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/stream-each-1.1.2.tgz_1454600601831_0.7560806761030108"},"directories":{},"publish_time":1454600603065,"_cnpm_publish_time":1454600603065,"_hasShrinkwrap":false},"1.1.1":{"name":"stream-each","version":"1.1.1","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"39ca9db549e6d7d3c7dfe06c58712f9a574a20c9","_id":"stream-each@1.1.1","_shasum":"10d758d732ed133130f1950ec067154b4cd7c455","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"10d758d732ed133130f1950ec067154b4cd7c455","size":2431,"noattachment":false,"key":"/stream-each/-/stream-each-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.1.1.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"publish_time":1453769923986,"_cnpm_publish_time":1453769923986,"_hasShrinkwrap":false},"1.1.0":{"name":"stream-each","version":"1.1.0","description":"Iterate all the data in a stream","main":"index.js","dependencies":{"end-of-stream":"^1.1.0"},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"f24f5d7211e9d1f84ce84f02352e7190ccf2fa45","_id":"stream-each@1.1.0","_shasum":"362b5901fb29ea58caafe7d37b2e7e087f5efa45","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"362b5901fb29ea58caafe7d37b2e7e087f5efa45","size":2285,"noattachment":false,"key":"/stream-each/-/stream-each-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.1.0.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"publish_time":1445202926755,"_cnpm_publish_time":1445202926755,"_hasShrinkwrap":false},"1.0.2":{"name":"stream-each","version":"1.0.2","description":"Iterate all the data in a stream","main":"index.js","dependencies":{},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"60f494b053d05447c3d8e114f640df06d8c71da6","_id":"stream-each@1.0.2","_shasum":"c0bf4b73cc42ef6ae859b1e9c9f8bc6a2c3ad813","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c0bf4b73cc42ef6ae859b1e9c9f8bc6a2c3ad813","size":1983,"noattachment":false,"key":"/stream-each/-/stream-each-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.0.2.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"publish_time":1445201288056,"_cnpm_publish_time":1445201288056,"_hasShrinkwrap":false},"1.0.1":{"name":"stream-each","version":"1.0.1","description":"Iterate all the data in a stream","main":"index.js","dependencies":{},"devDependencies":{"standard":"^5.3.1","tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"72cb2f7e21d3667a37fade7a54d0160a99dad0f6","_id":"stream-each@1.0.1","_shasum":"c94d4c222159b44090335232cd9efc93d6af8ed1","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c94d4c222159b44090335232cd9efc93d6af8ed1","size":1997,"noattachment":false,"key":"/stream-each/-/stream-each-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.0.1.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"publish_time":1445201134438,"_cnpm_publish_time":1445201134438,"_hasShrinkwrap":false},"1.0.0":{"name":"stream-each","version":"1.0.0","description":"Iterate all the data in a stream","main":"index.js","dependencies":{},"devDependencies":{"tape":"^4.2.1","through2":"^2.0.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"https://github.com/mafintosh/stream-each.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"homepage":"https://github.com/mafintosh/stream-each","gitHead":"04c1ed8cc3f6bbfcf1f0833bbe7381042f333cc5","_id":"stream-each@1.0.0","_shasum":"d229d2290a636c2a959fcb2ef526a3cd41145e9a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"d229d2290a636c2a959fcb2ef526a3cd41145e9a","size":1975,"noattachment":false,"key":"/stream-each/-/stream-each-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stream-each/download/stream-each-1.0.0.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"}],"directories":{},"publish_time":1445200917778,"_cnpm_publish_time":1445200917778,"_hasShrinkwrap":false}},"readme":"# stream-each\n\nIterate all the data in a stream\n\n```\nnpm install stream-each\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/stream-each.svg?style=flat)](http://travis-ci.org/mafintosh/stream-each)\n\n## Usage\n\n``` js\nvar each = require('stream-each')\n\neach(stream, function (data, next) {\n  console.log('data from stream', data)\n  // when ready to consume next chunk\n  next()\n}, function (err) {\n  console.log('no more data')\n})\n```\n\n## API\n\n#### `each(stream, iterator, cb)`\n\nIterate the data in the stream by calling the iterator function with `(data, next)`\nwhere data is a data chunk and next is a callback. Call next when you are ready to\nconsume the next chunk. Optionally you can call next with an error to destroy the stream\n\nWhen the stream ends/errors the callback is called if provided\n\n## License\n\nMIT\n\n## Related\n\n`stream-each` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.\n","_attachments":{},"homepage":"https://github.com/mafintosh/stream-each","bugs":{"url":"https://github.com/mafintosh/stream-each/issues"},"license":"MIT"}