{"_id":"streamfilter","_rev":"229369","name":"streamfilter","description":"Filtering streams.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"time":{"modified":"2021-06-03T15:44:56.000Z","created":"2015-02-09T08:28:59.412Z","3.0.0":"2018-11-10T10:37:25.945Z","1.0.7":"2017-12-06T07:29:01.331Z","2.0.0":"2017-12-06T07:21:31.134Z","1.0.6":"2017-12-03T12:37:33.247Z","1.0.5":"2015-08-21T08:50:27.633Z","1.0.4":"2015-08-11T09:04:12.407Z","1.0.3":"2015-08-02T10:12:01.683Z","1.0.2":"2015-08-01T11:23:04.518Z","1.0.1":"2015-02-09T08:39:03.276Z","1.0.0":"2015-02-09T08:28:59.412Z"},"users":{},"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"http://insertafter.com/en/index.html"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamfilter.git"},"versions":{"3.0.0":{"name":"streamfilter","version":"3.0.0","description":"Filtering streams.","main":"src/index.js","metapak":{"configs":["main","readme","jsdocs","eslint","mocha","codeclimate","travis"],"data":{"files":"src/*.js tests/*.mocha.js","testsFiles":"tests/*.mocha.js"}},"scripts":{"changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","cli":"env NODE_ENV=${NODE_ENV:-cli}","cover":"nyc npm test && nyc report --reporter=html --reporter=text","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"echo \"# API\" > API.md; jsdoc2md src/*.js tests/*.mocha.js >> API.md && git add API.md","lint":"eslint src/*.js tests/*.mocha.js","metapak":"metapak","mocha":"mocha tests/*.mocha.js","precz":"npm t && npm run lint && npm run doc && npm run metapak -- -s","prettier":"prettier --write src/*.js tests/*.mocha.js","preversion":"npm t && npm run lint && npm run doc && npm run metapak -- -s","test":"npm run mocha","version":"npm run changelog && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"http://insertafter.com/en/index.html"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"commitizen":"^3.0.4","conventional-changelog-cli":"^2.0.11","coveralls":"^3.0.2","cz-conventional-changelog":"^2.1.0","eslint":"^5.8.0","eslint-plugin-prettier":"^3.0.0","jsdoc-to-markdown":"^4.0.1","metapak":"^2.0.0","metapak-nfroidure":"^9.0.2","mocha":"^5.2.0","nyc":"^13.0.1","prettier":"^1.14.3","streamtest":"^1.2.4"},"dependencies":{"readable-stream":"^3.0.6"},"engines":{"node":">=8.12.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"contributors":[],"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"sourceType":"script","modules":true},"env":{"es6":true,"node":true,"jest":true,"mocha":true},"plugins":["prettier"],"rules":{"prettier/prettier":"error"}},"prettier":{"semi":true,"printWidth":80,"singleQuote":true,"trailingComma":"es5","proseWrap":"always"},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","jsdoc-to-markdown","eslint","eslint-config-prettier","prettier","mocha","coveralls","nyc"]},"gitHead":"373da8fa746a054f501ab34bb9feba74da226a84","_id":"streamfilter@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.10.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"8c61b08179a6c336c6efccc5df30861b7a9675e7","size":6064,"noattachment":false,"key":"/streamfilter/-/streamfilter-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-3.0.0.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamfilter_3.0.0_1541846245766_0.06540921179176018"},"_hasShrinkwrap":false,"publish_time":1541846245945,"_cnpm_publish_time":1541846245945},"1.0.7":{"name":"streamfilter","version":"1.0.7","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000","lint":"eslint **/*.s","cli":"env NPM_RUN_CLI=1"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.3","eslint":"^1.0.0","istanbul":"^0.3.17","mocha":"^2.2.5","sf-lint":"^1.0.2","streamtest":"^1.2.1"},"dependencies":{"readable-stream":"^2.0.2"},"gitHead":"6c9733f67f9c21c4df81728ff3bfd3d67ba24b2a","_id":"streamfilter@1.0.7","_npmVersion":"5.5.1","_nodeVersion":"6.10.3","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"ae3e64522aa5a35c061fd17f67620c7653c643c9","size":6465,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.7.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamfilter-1.0.7.tgz_1512545341229_0.7666103506926447"},"directories":{},"publish_time":1512545341331,"_hasShrinkwrap":false,"_cnpm_publish_time":1512545341331},"2.0.0":{"name":"streamfilter","version":"2.0.0","description":"Filtering streams.","main":"src/index.js","metapak":{"configs":["readme","jsdocs","eslint","mocha","codeclimate","travis"],"data":{"files":"src/*.js tests/*.mocha.js","testsFiles":"tests/*.mocha.js"}},"scripts":{"changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","cli":"env NODE_ENV=${NODE_ENV:-cli}","cover":"istanbul cover _mocha --report html -- tests/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"mkdir -p .readme; echo \"# API\" > .readme/API.md; jsdoc2md src/*.js tests/*.mocha.js >> .readme/API.md","lint":"eslint src/*.js tests/*.mocha.js","metapak":"metapak","mocha":"mocha tests/*.mocha.js","prettier":"prettier --write src/*.js tests/*.mocha.js","preversion":"npm t && npm run lint && npm run metapak -s","test":"npm run mocha","version":"npm run changelog && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"commitizen":"^2.9.6","conventional-changelog-cli":"^1.3.5","coveralls":"^2.13.3","cz-conventional-changelog":"^2.0.0","eslint":"^4.12.1","eslint-plugin-prettier":"^2.3.1","istanbul":"^0.4.5","jsdoc-to-markdown":"^3.0.2","metapak":"^1.0.2","metapak-nfroidure":"^2.0.2","mocha":"^3.5.3","mocha-lcov-reporter":"^1.3.0","prettier":"^1.8.2","streamtest":"^1.2.3"},"dependencies":{"readable-stream":"^2.3.3"},"engines":{"node":">=6.9.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","jsdoc-to-markdown","eslint","eslint-config-prettier","prettier","mocha","mocha-lcov-reporter","coveralls","istanbul"]},"gitHead":"6a0406877d4d10882d72b9b9759a00599d7d5926","_id":"streamfilter@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"6.10.3","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"f57f20c57d2e1623d315a593e87e5278cc4d0104","size":9830,"noattachment":false,"key":"/streamfilter/-/streamfilter-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-2.0.0.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamfilter-2.0.0.tgz_1512544890228_0.11984894634224474"},"directories":{},"publish_time":1512544891134,"_hasShrinkwrap":false,"_cnpm_publish_time":1512544891134},"1.0.6":{"name":"streamfilter","version":"1.0.6","description":"Filtering streams.","main":"src/index.js","metapak":{"configs":["readme","jsdocs","eslint","mocha","codeclimate","travis"],"data":{"files":"src/*.js tests/*.mocha.js","testsFiles":"tests/*.mocha.js"}},"scripts":{"changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","cli":"env NODE_ENV=${NODE_ENV:-cli}","cover":"istanbul cover _mocha --report html -- tests/*.mocha.js -R spec -t 5000","coveralls":"istanbul cover _mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cz":"env NODE_ENV=${NODE_ENV:-cli} git cz","doc":"mkdir -p .readme; echo \"# API\" > .readme/API.md; jsdoc2md src/*.js tests/*.mocha.js >> .readme/API.md","lint":"eslint src/*.js tests/*.mocha.js","metapak":"metapak","mocha":"mocha tests/*.mocha.js","prettier":"prettier --write src/*.js tests/*.mocha.js","preversion":"npm t && npm run lint && npm run metapak -s","test":"npm run mocha","version":"npm run changelog && git add CHANGELOG.md"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"commitizen":"^2.9.6","conventional-changelog-cli":"^1.3.5","coveralls":"^2.13.3","cz-conventional-changelog":"^2.0.0","eslint":"^4.12.1","eslint-plugin-prettier":"^2.3.1","istanbul":"^0.4.5","jsdoc-to-markdown":"^3.0.2","metapak":"^1.0.2","metapak-nfroidure":"^2.0.2","mocha":"^3.5.3","mocha-lcov-reporter":"^1.3.0","prettier":"^1.8.2","streamtest":"^1.2.3"},"dependencies":{"readable-stream":"^2.3.3"},"engines":{"node":">=6.9.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","jsdoc-to-markdown","eslint","eslint-config-prettier","prettier","mocha","mocha-lcov-reporter","coveralls","istanbul"]},"gitHead":"5713810804d270643040e7868a353cf1772e8c4d","_id":"streamfilter@1.0.6","_npmVersion":"5.5.1","_nodeVersion":"6.10.3","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"8d08717cac077b0834c82607d0fa9bc777a7fcbc","size":9819,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.6.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamfilter-1.0.6.tgz_1512304652301_0.4825136454310268"},"directories":{},"publish_time":1512304653247,"_hasShrinkwrap":false,"_cnpm_publish_time":1512304653247,"deprecated":"Semver"},"1.0.5":{"name":"streamfilter","version":"1.0.5","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000","lint":"eslint **/*.s","cli":"env NPM_RUN_CLI=1"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.3","eslint":"^1.0.0","istanbul":"^0.3.17","mocha":"^2.2.5","sf-lint":"^1.0.2","streamtest":"^1.2.1"},"dependencies":{"readable-stream":"^2.0.2"},"gitHead":"0c0c8a117b79cca6ceb69ab5dbd1789e1ee57e2f","_id":"streamfilter@1.0.5","_shasum":"87507111beb8e298451717b511cfed8f002abf53","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"dist":{"shasum":"87507111beb8e298451717b511cfed8f002abf53","size":6568,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.5.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"publish_time":1440147027633,"_cnpm_publish_time":1440147027633,"_hasShrinkwrap":false},"1.0.4":{"name":"streamfilter","version":"1.0.4","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000","lint":"eslint **/*.s","cli":"env NPM_RUN_CLI=1"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.3","eslint":"^1.0.0","istanbul":"^0.3.17","mocha":"^2.2.5","sf-lint":"^1.0.2","streamtest":"^1.2.1"},"dependencies":{"readable-stream":"^2.0.2"},"gitHead":"4d09fe26b397a628c06947a6b6b3e22d361c0a92","_id":"streamfilter@1.0.4","_shasum":"10513b3e0225be9806fa07a0d4eb2bfc56c56fff","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"dist":{"shasum":"10513b3e0225be9806fa07a0d4eb2bfc56c56fff","size":6475,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.4.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"publish_time":1439283852407,"_cnpm_publish_time":1439283852407,"_hasShrinkwrap":false},"1.0.3":{"name":"streamfilter","version":"1.0.3","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000","lint":"eslint **/*.s","cli":"env NPM_RUN_CLI=1"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.3","eslint":"^1.0.0","istanbul":"^0.3.17","mocha":"^2.2.5","sf-lint":"^1.0.2","streamtest":"^1.2.1"},"dependencies":{"readable-stream":"^2.0.2"},"gitHead":"ba61e8843dc5a90a384ec89b09ea6dbce06c04ad","_id":"streamfilter@1.0.3","_shasum":"493cf051f7308a87782932c28f146d04db692280","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"dist":{"shasum":"493cf051f7308a87782932c28f146d04db692280","size":6234,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.3.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"publish_time":1438510321683,"_cnpm_publish_time":1438510321683,"_hasShrinkwrap":false},"1.0.2":{"name":"streamfilter","version":"1.0.2","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0","streamtest":"^1.0.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"0bfbbf346fb3c6a1f0e95778e830b532ff44c4d4","_id":"streamfilter@1.0.2","_shasum":"738f275b528404d28c3ca1eedee54f7980bc4076","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"dist":{"shasum":"738f275b528404d28c3ca1eedee54f7980bc4076","size":4097,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.2.tgz"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"publish_time":1438428184518,"_cnpm_publish_time":1438428184518,"_hasShrinkwrap":false},"1.0.1":{"name":"streamfilter","version":"1.0.1","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33","streamtest":"^1.0.0"},"gitHead":"9c049345701382c9d1f97856e7ead15c69b54469","_id":"streamfilter@1.0.1","_shasum":"5ebf8f0a2f29a24295b9ab82aab375f02ac9e42c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"5ebf8f0a2f29a24295b9ab82aab375f02ac9e42c","size":3957,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.1.tgz"},"directories":{},"publish_time":1423471143276,"_cnpm_publish_time":1423471143276,"_hasShrinkwrap":false},"1.0.0":{"name":"streamfilter","version":"1.0.0","description":"Filtering streams.","main":"src/index.js","scripts":{"test":"mocha tests/*.mocha.js","coveralls":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","cover":"./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html -- tests/*.mocha.js -R spec -t 5000"},"repository":{"type":"git","url":"git@github.com:nfroidure/streamfilter.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"homepage":"https://github.com/nfroidure/streamfilter","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33","streamtest":"^1.0.0"},"gitHead":"5005ae74c8e283e9b4ea4cb349738dd5d5cdbc30","_id":"streamfilter@1.0.0","_shasum":"fcdfb13a3c608a0c414c6b66a6a7a57b02b5235a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"fcdfb13a3c608a0c414c6b66a6a7a57b02b5235a","size":3875,"noattachment":false,"key":"/streamfilter/-/streamfilter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamfilter/download/streamfilter-1.0.0.tgz"},"directories":{},"publish_time":1423470539412,"_cnpm_publish_time":1423470539412,"_hasShrinkwrap":false}},"readme":"[//]: # ( )\n[//]: # (This file is automatically generated by a `metapak`)\n[//]: # (module. Do not change it  except between the)\n[//]: # (`content:start/end` flags, your changes would)\n[//]: # (be overridden.)\n[//]: # ( )\n# streamfilter\n> Filtering streams.\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/streamfilter/blob/main/LICENSE)\n\n\n[//]: # (::contents:start)\n\n`streamfilter` is a function based filter for streams inspired per gulp-filter\nbut no limited to Gulp nor to objectMode streams.\n\n## Installation\n\nFirst, install `streamfilter` in your project:\n\n```sh\nnpm install --save streamfilter\n```\n\n## Getting started\n\nThere are 3 common usages:\n\n### Simple filter\n\n```js\nimport { StreamFilter } from 'streamfilter';\n\nconst filter = new StreamFilter((chunk, encoding, cb) => {\n  const mustBeFiltered = chunk.length() > 128;\n\n  if (mustBeFiltered) {\n    cb(true);\n    return;\n  }\n  cb(false);\n});\n\n// Print to stdout a filtered stdin\nprocess.stdin.pipe(filter).pipe(process.stdout);\n```\n\n### Filter and restore\n\n```js\nimport { filterStream } from 'streamfilter';\n\n// Here we use the functionnal help\nconst filter = new filterStream(\n  // Here we use an async callback instead\n  async (chunk, encoding) => {\n    const mustBeFiltered = chunk.length() > 128;\n\n    if (mustBeFiltered) {\n      return true;\n    }\n    return false;\n  },\n  {\n    restore: true,\n  },\n);\n\n// Print accepted chunks in stdout\nfilter.pipe(process.stdout);\n\n// Print filtered one to stderr\nfilter.restore.pipe(process.stderr);\n```\n\n### Filter and restore as a passthrough stream\n\nLet's reach total hype!\n\n```js\nimport { StreamFilter } from 'streamfilter';\nimport { Transform } from 'stream';\n\n// Filter values\nconst filter = new StreamFilter(\n  (chunk, encoding, cb) => {\n    const mustBeFiltered = chunk.length() > 128;\n    if (mustBeFiltered) {\n      cb(true);\n      return;\n    }\n    cb(false);\n  },\n  {\n    restore: true,\n    passthrough: true,\n  },\n);\n\n// Uppercase strings\nconst mySuperTransformStream = new Transform({\n  transform: (chunk, encoding, cb) =>\n    cb(null, Buffer.from(chunk.toString(encoding).toUpperCase(), encoding)),\n});\n\n// Pipe stdin\nprocess.stdin\n  .pipe(filter)\n  // Edit kept chunks\n  .pipe(mySuperTransformStream)\n  // Restore filtered chunks\n  .pipe(filter.restore)\n  // and output!\n  .pipe(process.stdout);\n```\n\nNote that in this case, this is _your_ responsibility to end the restore stream\nby piping in another stream or ending it manually.\n\n[//]: # (::contents:end)\n\n# API\n## Classes\n\n<dl>\n<dt><a href=\"#StreamFilter\">StreamFilter</a></dt>\n<dd><p>Filter piped in streams according to the given <code>filterCallback</code>.</p>\n</dd>\n</dl>\n\n## Functions\n\n<dl>\n<dt><a href=\"#filterStream\">filterStream(filterCallback, options)</a> ⇒</dt>\n<dd><p>Utility function if you prefer a functional way of using this lib</p>\n</dd>\n</dl>\n\n<a name=\"StreamFilter\"></a>\n\n## StreamFilter\nFilter piped in streams according to the given `filterCallback`.\n\n**Kind**: global class  \n<a name=\"new_StreamFilter_new\"></a>\n\n### new StreamFilter(filterCallback, options)\nOptions are passed in as is in the various stream instances spawned by this\n module. So, to use the objectMode, simply pass in the `options.objectMode`\n value set to `true`.\n\n**Returns**: [<code>StreamFilter</code>](#StreamFilter) - The filtering stream  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| filterCallback | <code>function</code> | Callback applying the filters |\n| options | <code>Object</code> | Filtering options |\n| options.passthrough | <code>boolean</code> | Set to `true`, this option changes the restore stream nature from a readable  stream to a passthrough one, allowing you to reuse the filtered chunks in an  existing pipeline. |\n| options.restore | <code>boolean</code> | Set to `true`, this option create a readable stream allowing you to use the  filtered chunks elsewhere. The restore stream is exposed in the `FilterStream`  instance as a `restore` named property. |\n\n<a name=\"filterStream\"></a>\n\n## filterStream(filterCallback, options) ⇒\nUtility function if you prefer a functional way of using this lib\n\n**Kind**: global function  \n**Returns**: Stream  \n\n| Param |\n| --- |\n| filterCallback | \n| options | \n\n\n# Authors\n- [Nicolas Froidure](http://insertafter.com/en/index.html)\n\n# License\n[MIT](https://github.com/nfroidure/streamfilter/blob/main/LICENSE)\n","_attachments":{},"homepage":"https://github.com/nfroidure/streamfilter","bugs":{"url":"https://github.com/nfroidure/streamfilter/issues"},"license":"MIT"}