{"_id":"stream-reduce","_rev":"13-a8ac060417a6cbdd0871f5b841990fd8","name":"stream-reduce","description":"Reduce stream data to a single value","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"stream-reduce","version":"1.0.0","description":"Reduce stream data to a single value","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-reduce.git"},"keywords":["stream","reduce"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","devDependencies":{"tape":"~1.0.4"},"dependencies":{"through":"~2.3.4"},"bugs":{"url":"https://github.com/parshap/node-stream-reduce/issues"},"_id":"stream-reduce@1.0.0","dist":{"shasum":"629ef1dc3853231bc67ad779d7cddaa2f46c5db2","tarball":"https://registry.npmjs.org/stream-reduce/-/stream-reduce-1.0.0.tgz","integrity":"sha512-DTQIhnN3/57rwJYXYZXN8C0VOj66KyQFyTRW09k52Mi9XRTCQYgyIRqcRD1VYUONJPat5Mqjq2BpV3RByTg6gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSyvvQkAipL1y/8ybWe7HiFvwPLWNS6oykvR71o1r4hgIgKXBUDPU4UPl0dCBxkJ3KsiR5Fqa6mttuZVUGz+AomaY="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"parshap","email":"supster+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}]},"1.0.1":{"name":"stream-reduce","version":"1.0.1","description":"Reduce stream data to a single value","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-reduce.git"},"keywords":["stream","reduce"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","devDependencies":{"tape":"~1.0.4"},"dependencies":{"through":"~2.3.4"},"_id":"stream-reduce@1.0.1","dist":{"shasum":"b7a5883c3b5d1450314d46b905fccd43df33c439","tarball":"https://registry.npmjs.org/stream-reduce/-/stream-reduce-1.0.1.tgz","integrity":"sha512-awH0FqGhBcf/a3KsBrPGXvkYzzlbcWzShWGdEgHDMxDwCJAkIFmmGXUaWO4T45xhmv/P4rIZF4XJUlBT9lNehQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHonJxbxMFw190Hyo4VsVmNUgyymX0A5A0cGX7/4hRW6AiBjGfN0ei3uOq9O2b6AYto6dxC0AEcG2MqDA+tp0TqN8w=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"parshap","email":"supster+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}]},"1.0.2":{"name":"stream-reduce","version":"1.0.2","description":"Reduce stream data to a single value","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-reduce.git"},"keywords":["stream","reduce"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","devDependencies":{"tape":"~1.0.4"},"dependencies":{"through":"~2.3.4"},"bugs":{"url":"https://github.com/parshap/node-stream-reduce/issues"},"homepage":"https://github.com/parshap/node-stream-reduce","_id":"stream-reduce@1.0.2","dist":{"shasum":"5b8bea2a377d7df8b776893afd7fda8bc73d0a05","tarball":"https://registry.npmjs.org/stream-reduce/-/stream-reduce-1.0.2.tgz","integrity":"sha512-H5gi7cz4OKDUJp295mbO1czyKaUgkXfNUNvmuHddneRXleJUtS/SvWK1+SZc39KA7M02K/vz4FiUtYvZg3J0CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICeLEXHd4CvaxiXvgcoxOQXW255je7VdOmMoB5K5z8LmAiAmhCaNFoq4UnM3iFtfS3VIAPq0gelFFnXuCngpVWOgIg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}]},"1.0.3":{"name":"stream-reduce","version":"1.0.3","description":"Reduce stream data to a single value","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-reduce.git"},"keywords":["stream","reduce"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","devDependencies":{"tape":"~1.0.4"},"dependencies":{"through":"~2.3.4"},"bugs":{"url":"https://github.com/parshap/node-stream-reduce/issues"},"homepage":"https://github.com/parshap/node-stream-reduce","_id":"stream-reduce@1.0.3","dist":{"shasum":"56d3621fa84370619ae402ffc0468528991b36a9","tarball":"https://registry.npmjs.org/stream-reduce/-/stream-reduce-1.0.3.tgz","integrity":"sha512-2F9zNsWq1UzP4X091Mazl40P0WgnXmk6zRgkzH0HFpEV8ZWNfZP39pF09s6Ecm9Y5JfRhJHooKnxy0zURulxRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1YSzsPq0aemEpx8DStjgaQHCd1Y0CGbMreUHyhCxonwIhAObjjbSUARrz3gkamsbjpb8Q/Q8/B8GIIdjlmKbM4RVB"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}]}},"readme":"# stream-reduce\n\nLike [`Array.prototype.reduce`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce)\nbut for streams. Given a sync reduce function and an initial value it\nwill return a through stream that emits a single data event with the\nreduced value once the input stream ends.\n\n# Example\n\n```js\nvar reduce = require(\"stream-reduce\");\n\nprocess.stdin.pipe(reduce(function(acc, data) {\n\treturn acc + data.length;\n}, 0)).on(\"data\", function(length) {\n\tconsole.log(\"stdin size:\", length);\n});\n```\n\n# Installation\n\n```\nnpm install stream-reduce\n```\n","maintainers":[{"email":"parshap+npm@gmail.com","name":"parshap"}],"time":{"modified":"2022-06-27T00:49:10.934Z","created":"2013-08-09T22:28:21.339Z","1.0.0":"2013-08-09T22:28:24.109Z","1.0.1":"2013-11-19T17:33:37.771Z","1.0.2":"2014-03-07T18:53:10.823Z","1.0.3":"2014-03-07T18:53:40.152Z"},"author":{"name":"Parsha Pourkhomami"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-reduce.git"},"homepage":"https://github.com/parshap/node-stream-reduce","keywords":["stream","reduce"],"bugs":{"url":"https://github.com/parshap/node-stream-reduce/issues"},"license":"Public Domain","readmeFilename":"README.md","users":{"edobry":true}}