{"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","tarball":"http://registry-npm.ywwl.com/stream-each/download/stream-each-1.2.0.tgz","integrity":"sha512-PPoSY4W0zPNhZ0l3DeID+rbpBmjRCyu3tRobUeCloQBLyK5ASp9KJq4Lee7r1JDsZXFIgbLNpYpA+Ogd8s+ayQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmPQwbG5bs+Ec019cFBKx4aeB0beuDRmB9IOb35arReAiEAuiNi5pnsTn1bxW/2uWhHy/u/8uQFFMzk79MhvdNvgUs="}],"size":2501,"noattachment":false,"key":"/stream-each/-/stream-each-1.2.0.tgz"},"maintainers":[{"name":"karissa","email":"krmckelv@gmail.com"},{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-each-1.2.0.tgz_1478427484733_0.5437065886799246"},"directories":{},"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","publish_time":1478427484958,"_cnpm_publish_time":1478427484958,"dist-tags":{"latest":"1.2.3"}}