{"_id":"stream-filter","_rev":"10-c66685f1529490c6b68964440dc1c607","name":"stream-filter","description":"Filter data passed through","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"stream-filter","version":"1.0.0","description":"Filter data passed through","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git@github.com:parshap/node-stream-filter"},"keywords":["stream","filter"],"author":{"name":"Parsha Pourkhomami"},"license":"Public Domain","devDependencies":{"tape":"~1"},"dependencies":{"through":"~2"},"bugs":{"url":"https://github.com/parshap/node-stream-filter/issues"},"_id":"stream-filter@1.0.0","dist":{"shasum":"3f0a4c6d5981011e9862a32afdb0df16a4b67ede","tarball":"https://registry.npmjs.org/stream-filter/-/stream-filter-1.0.0.tgz","integrity":"sha512-FnB+RV/hfX5nU758FY1ImWwmbHRCiqTdZHMlLfnEz/rR8S1HPvt7LzcZh/poqVBvn3cgoiUTmsAipb8oN+EbFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHELbmn/POAZynPw2E7F6FI6tq1H/IrBKZjPz2mlN5opAiEAnsApwlWuF+aIwYY/LZGeeKyklg7e+V6wxLqfmr/sRFg="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"parshap","email":"supster+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}]},"2.0.0":{"name":"stream-filter","version":"2.0.0","description":"Filter data passed through","main":"index.js","scripts":{"test":"node test.js","prepublish":"npm test"},"repository":{"type":"git","url":"git+ssh://git@github.com/parshap/node-stream-filter.git"},"keywords":["stream","filter"],"author":{"name":"Parsha Pourkhomami"},"contributors":[{"name":"Jannis R","email":"mail@jannisr.de"}],"license":"Public Domain","devDependencies":{"tape":"^4.6"},"dependencies":{"through2":"^2.0.1"},"gitHead":"85b9a2bd51c2ed7604b6d5c492b10dbf96fb162b","bugs":{"url":"https://github.com/parshap/node-stream-filter/issues"},"homepage":"https://github.com/parshap/node-stream-filter#readme","_id":"stream-filter@2.0.0","_shasum":"a1ae4e04e22d584fd70a299a62b1de842209057d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"dist":{"shasum":"a1ae4e04e22d584fd70a299a62b1de842209057d","tarball":"https://registry.npmjs.org/stream-filter/-/stream-filter-2.0.0.tgz","integrity":"sha512-vhBHTOx9wQMQCfXjDJk8LbWSQe+IUNf01lSJA4Rj5UyY7cYoWTrr7cUDnHlp8/0rXvqaU/GSHrFWzk69SbXMsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDs7PPb71Ge3dYZ+tI07vwqE6vDOx46emh7zvRJHUk8wAiEAzE3mBaaPQ+gPvCZa1JVtQ4bpmycIvG30HpXYxiqf+Dc="}]},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-filter-2.0.0.tgz_1472588323031_0.16904757847078145"}},"2.1.0":{"name":"stream-filter","version":"2.1.0","description":"Filter data passed through","main":"index.js","scripts":{"test":"node test.js","prepublish":"npm test"},"repository":{"type":"git","url":"git+ssh://git@github.com/parshap/node-stream-filter.git"},"keywords":["stream","filter"],"author":{"name":"Parsha Pourkhomami"},"contributors":[{"name":"Jannis R","email":"mail@jannisr.de"}],"license":"Public Domain","devDependencies":{"tape":"^4.6"},"dependencies":{"through2":"^2.0.1","xtend":"^4.0.1"},"gitHead":"f35c9d8c2016bf84372f700d52a8039c46e3ef2c","bugs":{"url":"https://github.com/parshap/node-stream-filter/issues"},"homepage":"https://github.com/parshap/node-stream-filter#readme","_id":"stream-filter@2.1.0","_shasum":"bdff4eee3cde4c1525e02b78dde93d821fe529bd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"dist":{"shasum":"bdff4eee3cde4c1525e02b78dde93d821fe529bd","tarball":"https://registry.npmjs.org/stream-filter/-/stream-filter-2.1.0.tgz","integrity":"sha512-zqouA3DxiR0meoZoQwQ4xxdiZyestiiZLf8cPLKXSiU2baJnMuTHkx2ofY57VXtOFkvQP9yDGLx8ch5f33JJeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFftpueyWO2h0jPEpz/JxbTe/WqWG3eRlzMKrljpPzY1AiAA1hR45eWfUsinKMOatiVI4P656yMStEqkMpuFn1HIvQ=="}]},"maintainers":[{"name":"parshap","email":"supster+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-filter-2.1.0.tgz_1472841519510_0.9056188387330621"}}},"readme":"# stream-filter\n\nFilter data using a [through stream](https://github.com/rvagg/through2).\n\n[![build status](https://img.shields.io/travis/parshap/node-stream-filter.svg)](https://travis-ci.org/parshap/node-stream-filter)\n\n## Installation\n\n[npm: *stream-filter*](https://www.npmjs.com/package/stream-filter)\n\n```\nnpm install stream-filter\n```\n\n## Example\n\n```js\nvar filter = require(\"stream-filter\");\n\nprocess.stdin.pipe(filter(function(data) {\n\treturn data.length > 2;\n})).pipe(process.stdout);\n```\n\n### Async Filter Function\n\n```js\nvar filter = require(\"stream-filter\");\n\nprocess.stdin.pipe(filter.async(function(data, callback) {\n\tdoAsyncThing(data, function(err, size) {\n\t\tcallback(err, size > 2);\n\t});\n})).pipe(process.stdout);\n```\n\n## API\n\n```js\nvar filter = require(\"stream-filter\");\nfilter(fn, options);\nfilter.obj(fn, options);\nfilter.async(fn, options);\nfilter.async.obj(fn, options);\n```\n\nNote that `filter.obj(fn)` and `filter.async.obj(fn)` are convenience\nwrappers to pass `{ objectMode: true }`.\n\nSee [index.js](./index.js) and [test.js](./test.js) for API details.\n","maintainers":[{"email":"parshap+npm@gmail.com","name":"parshap"}],"time":{"modified":"2022-06-27T00:46:55.946Z","created":"2013-08-09T22:28:29.401Z","1.0.0":"2013-08-09T22:28:32.362Z","2.0.0":"2016-08-30T20:18:43.264Z","2.1.0":"2016-09-02T18:38:39.780Z"},"author":{"name":"Parsha Pourkhomami"},"repository":{"type":"git","url":"git+ssh://git@github.com/parshap/node-stream-filter.git"},"users":{"jden":true,"jsdnxx":true},"keywords":["stream","filter"],"bugs":{"url":"https://github.com/parshap/node-stream-filter/issues"},"license":"Public Domain","readmeFilename":"README.md","homepage":"https://github.com/parshap/node-stream-filter#readme","contributors":[{"name":"Jannis R","email":"mail@jannisr.de"}]}