{"_id":"streamtest","_rev":"1954345","name":"streamtest","description":"Streams test library","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"time":{"modified":"2021-12-13T19:31:18.000Z","created":"2015-02-08T19:24:17.135Z","2.0.0":"2020-07-27T09:54:05.926Z","1.2.4":"2018-06-09T05:53:24.185Z","1.2.3":"2017-12-03T11:18:26.364Z","1.2.2":"2016-03-19T16:04:59.497Z","1.2.1":"2015-06-20T08:26:01.640Z","1.2.0":"2015-02-14T14:41:04.224Z","1.1.1":"2015-02-10T20:33:31.199Z","1.1.0":"2015-02-08T21:13:34.889Z","1.0.0":"2015-02-08T19:24:17.135Z"},"users":{"chriszs":true,"mkrufky":true,"dev_i_aint":true},"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"https://insertafter.com/en/index.html"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamtest.git"},"versions":{"2.0.0":{"name":"streamtest","version":"2.0.0","description":"Streams test library","main":"src/index.js","metapak":{"configs":["main","readme","mocha","eslint","travis","codeclimate"],"data":{"testsFiles":"tests/*.mocha.js","files":"src/*.js tests/*.mocha.js"}},"scripts":{"changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md","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","lint":"eslint src/*.js tests/*.mocha.js","metapak":"metapak","mocha":"mocha tests/*.mocha.js","precz":"npm t && npm run lint && npm run metapak -- -s","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"},"repository":{"type":"git","url":"git+ssh://git@github.com/nfroidure/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure","email":"nicolas.froidure@insertafter.com","url":"https://insertafter.com/en/index.html"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"commitizen":"^4.1.2","conventional-changelog-cli":"^2.0.34","coveralls":"^3.1.0","cz-conventional-changelog":"^3.2.0","eslint":"^7.0.0","eslint-plugin-prettier":"^3.1.3","metapak":"3.1.10","metapak-nfroidure":"10.2.1","mocha":"^7.1.2","nyc":"^15.0.1","prettier":"^2.0.5"},"dependencies":{"readable-stream":"^3.6.0"},"engines":{"node":">=10.19.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","mocha","coveralls","nyc","eslint","eslint-config-prettier","prettier"]},"nyc":{"exclude":["tests/*.mocha.js"]},"eslintConfig":{"extends":["eslint:recommended"],"parserOptions":{"ecmaVersion":2018,"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"},"contributors":[],"gitHead":"c7b511706b495c168056e5082360a9d4e29a7478","_id":"streamtest@2.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"aa6c9fc423f3b11b1836f4ffdfec719af577c24e","size":5892,"noattachment":false,"key":"/streamtest/-/streamtest-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-2.0.0.tgz"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamtest_2.0.0_1595843645763_0.9720013928224973"},"_hasShrinkwrap":false,"publish_time":1595843645926,"_cnpm_publish_time":1595843645926},"1.2.4":{"name":"streamtest","version":"1.2.4","description":"Streams test library","main":"src/index.js","metapak":{"configs":["readme","mocha","eslint","travis","codeclimate"],"data":{"testsFiles":"tests/*.mocha.js","files":"src/*.js 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","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/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"commitizen":"^2.9.6","conventional-changelog-cli":"^1.3.8","coveralls":"^3.0.0","cz-conventional-changelog":"^2.1.0","eslint":"^4.19.0","eslint-plugin-prettier":"^2.6.0","istanbul":"^0.4.5","metapak":"1.0.3","metapak-nfroidure":"6.1.0","mocha":"^5.0.0","mocha-lcov-reporter":"^1.3.0","prettier":"^1.11.1"},"dependencies":{"readable-stream":"^2.3.6"},"engines":{"node":">=6.9.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","mocha","mocha-lcov-reporter","coveralls","istanbul","eslint","eslint-config-prettier","prettier"]},"gitHead":"48b617991d369ad30f286facb27a6e3954610ae0","_id":"streamtest@1.2.4","_npmVersion":"6.1.0","_nodeVersion":"8.10.0","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"a01b8fb7fb406d15a31cedeb843fac973cff13f2","size":8314,"noattachment":false,"key":"/streamtest/-/streamtest-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.2.4.tgz"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamtest_1.2.4_1528523604111_0.8318307567697554"},"_hasShrinkwrap":false,"publish_time":1528523604185,"_cnpm_publish_time":1528523604185},"1.2.3":{"name":"streamtest","version":"1.2.3","description":"Streams test library","main":"src/index.js","metapak":{"configs":["readme","mocha","eslint","travis","codeclimate"],"data":{"testsFiles":"tests/*.mocha.js","files":"src/*.js 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","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/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","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","metapak":"1.0.2","metapak-nfroidure":"2.0.2","mocha":"^3.5.3","mocha-lcov-reporter":"^1.3.0","prettier":"^1.8.2"},"dependencies":{"readable-stream":"^2.0.5"},"engines":{"node":">=6.9.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"greenkeeper":{"ignore":["commitizen","cz-conventional-changelog","conventional-changelog-cli","mocha","mocha-lcov-reporter","coveralls","istanbul","eslint","eslint-config-prettier","prettier"]},"gitHead":"9f89314dbe9b6ceda0c0ea58a25939d47ac50d39","_id":"streamtest@1.2.3","_npmVersion":"5.5.1","_nodeVersion":"6.10.3","_npmUser":{"name":"nfroidure","email":"nicolas.froidure@insertafter.com"},"dist":{"shasum":"1e64b82801fcc853efa3bce123cbe521de0aa1ac","size":8261,"noattachment":false,"key":"/streamtest/-/streamtest-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.2.3.tgz"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/streamtest-1.2.3.tgz_1512299905275_0.030333267524838448"},"directories":{},"publish_time":1512299906364,"_hasShrinkwrap":false,"_cnpm_publish_time":1512299906364},"1.2.2":{"name":"streamtest","version":"1.2.2","description":"Streams test library","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+ssh://git@github.com/nfroidure/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.8","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"readable-stream":"^2.0.5"},"gitHead":"e147252dcabc632a5c778d8b55806f7bd7d5f436","_id":"streamtest@1.2.2","_shasum":"8c18de16fd24784bcb7264c57043a5618a599202","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"marcus.bitzl","email":"marcus@bitzl.com"},"dist":{"shasum":"8c18de16fd24784bcb7264c57043a5618a599202","size":4198,"noattachment":false,"key":"/streamtest/-/streamtest-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.2.2.tgz"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/streamtest-1.2.2.tgz_1458403497141_0.11731473659165204"},"directories":{},"publish_time":1458403499497,"_cnpm_publish_time":1458403499497,"_hasShrinkwrap":false},"1.2.1":{"name":"streamtest","version":"1.2.1","description":"Streams test library","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/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"871e1690c63c86352e52060382741c0e33f6358e","_id":"streamtest@1.2.1","_shasum":"0150e3820c4d2cc4cee2f8612aab5355b89b9b78","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"0150e3820c4d2cc4cee2f8612aab5355b89b9b78","size":4226,"noattachment":false,"key":"/streamtest/-/streamtest-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.2.1.tgz"},"directories":{},"publish_time":1434788761640,"_cnpm_publish_time":1434788761640,"_hasShrinkwrap":false},"1.2.0":{"name":"streamtest","version":"1.2.0","description":"Streams test library","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/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"95def34fbf8f640891a7f5af34cd0bd0550df922","_id":"streamtest@1.2.0","_shasum":"35da4cfc74db5495a10929a357e968817600481d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"35da4cfc74db5495a10929a357e968817600481d","size":4190,"noattachment":false,"key":"/streamtest/-/streamtest-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.2.0.tgz"},"directories":{},"publish_time":1423924864224,"_cnpm_publish_time":1423924864224,"_hasShrinkwrap":false},"1.1.1":{"name":"streamtest","version":"1.1.1","description":"Streams test library","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/streamtest.git"},"keywords":["test","streams","stream1","stream2"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"e44d7cf1152b4a7d97ae894ee8d243cd6c1f884f","_id":"streamtest@1.1.1","_shasum":"990b51da584fdba5c34fd19961ea6061696fbd9a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"990b51da584fdba5c34fd19961ea6061696fbd9a","size":3989,"noattachment":false,"key":"/streamtest/-/streamtest-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.1.1.tgz"},"directories":{},"publish_time":1423600411199,"_cnpm_publish_time":1423600411199,"_hasShrinkwrap":false},"1.1.0":{"name":"streamtest","version":"1.1.0","description":"Streams test library","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/streamtest.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"774ac60970ce4f5f466aaad004372f2f50e761d4","_id":"streamtest@1.1.0","_shasum":"15c4d1820d2ddbebdef9f552ea21475866a12d8a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"15c4d1820d2ddbebdef9f552ea21475866a12d8a","size":3876,"noattachment":false,"key":"/streamtest/-/streamtest-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.1.0.tgz"},"directories":{},"publish_time":1423430014889,"_cnpm_publish_time":1423430014889,"_hasShrinkwrap":false},"1.0.0":{"name":"streamtest","version":"1.0.0","description":"Streams test library","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/streamtest.git"},"keywords":["assert","deepEqual","neat"],"author":{"name":"Nicolas Froidure"},"license":"MIT","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"homepage":"https://github.com/nfroidure/streamtest","devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.5","mocha":"^2.1.0"},"dependencies":{"readable-stream":"^1.0.33"},"gitHead":"035a0b6936548dfd8d767fc2dc4dfb5944e91481","_id":"streamtest@1.0.0","_shasum":"46c1298063b32e6d6dd57a3782385f247378fc8e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"nfroidure","email":"nfroidure@elitwork.com"},"maintainers":[{"name":"marcus.bitzl","email":"marcus@bitzl.com"},{"name":"nfroidure","email":"nfroidure@elitwork.com"}],"dist":{"shasum":"46c1298063b32e6d6dd57a3782385f247378fc8e","size":3864,"noattachment":false,"key":"/streamtest/-/streamtest-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/streamtest/download/streamtest-1.0.0.tgz"},"directories":{},"publish_time":1423423457135,"_cnpm_publish_time":1423423457135,"_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# streamtest\n> Streams test library\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/streamtest/blob/master/LICENSE)\n[![Build status](https://secure.travis-ci.org/nfroidure/streamtest.svg)](https://travis-ci.org/nfroidure/streamtest)\n[![Coverage Status](https://coveralls.io/repos/nfroidure/streamtest/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/streamtest?branch=master)\n[![NPM version](https://badge.fury.io/js/streamtest.svg)](https://npmjs.org/package/streamtest)\n[![Dependency Status](https://david-dm.org/nfroidure/streamtest.svg)](https://david-dm.org/nfroidure/streamtest)\n[![devDependency Status](https://david-dm.org/nfroidure/streamtest/dev-status.svg)](https://david-dm.org/nfroidure/streamtest#info=devDependencies)\n[![Package Quality](http://npm.packagequality.com/shield/streamtest.svg)](http://packagequality.com/#?package=streamtest)\n[![Code Climate](https://codeclimate.com/github/nfroidure/streamtest.svg)](https://codeclimate.com/github/nfroidure/streamtest)\n\n\n[//]: # (::contents:start)\n\n`streamtest` is a set of utils to test your stream based modules accross various\n stream implementations of NodeJS.\n\nIn fact, this [repository's tests](https://github.com/nfroidure/streamtest/blob/master/tests/index.mocha.js)\n is a perfect example of its own usage ;).\n\n## Installation\n\nFirst install `streamtest` in your project:\n```sh\nnpm install --save-dev streamtest\n```\n\n## Getting started\n\nThen, use it:\n\n```js\nvar StreamTest = require('streamtest');\n\ndescribe('My Stream Lib', function() {\n\n  // Iterating through versions\n  StreamTest.versions.forEach(function(version) {\n\n    describe('for ' + version + ' streams', function() {\n\n      // here goes your code\n      it('should work', function(done) {\n\n        StreamTest[version].fromChunks(['a ', 'chunk', 'and', 'another'])\n          .pipe(myTestedStream)\n          .pipe(StreamTest[version].toText(function(err, text) {\n            if(err) {\n              done(err);\n            }\n            assert.equal(text, 'the text as i should be');\n            done();\n          }));\n\n      });\n\n    });\n\n  });\n\n});\n```\n\n## API\n\n### `StreamTest.versions:Array`\nList of supported versions (currently v1 and v2).\n\n### `StreamTest[version]:Object`\nObject available for each version containing the following methods.\n\n### `StreamTest[version].fromChunks(chunks:Array, timeout:Number)`\n\nCreate a readable stream streaming `chunks` each `timeout` milliseconds and then\n end. Usefull for testing buffer based streams.\n\n### `StreamTest[version].fromObjects(objects:Array, timeout:Number)`\n\nCreate a readable stream streaming `objects` each `timeout` milliseconds and\n then end. Usefull for testing objectMode based streams.\n\n### `StreamTest[version].fromErroredChunks(err:Error, chunks:Array, timeout:Number)`\n\nCreate a readable stream streaming `chunks` each `timeout` milliseconds, emit\n the `err` error and then end. Usefull for testing buffer based streams.\n\n### `StreamTest[version].fromErroredObjects(err:Error, objects:Array, timeout:Number)`\n\nCreate a readable stream streaming `objects` each `timeout` milliseconds, emit\n the `err` error and then end. Usefull for testing objectMode based streams.\n\n### `StreamTest[version].toChunks(cb:Function)`\n\nCreate a writable stream collecting written `chunks` and calling the `cb`\n function when it finishes.\n\nThe `cb` function take in an error and an Array of chunks.\n\n### `StreamTest[version].toObjects(cb:Function)`\n\nCreate a writable stream collecting written `chunks` and calling the `cb`\n function when it finishes.\n\nThe `cb` function take in an error and an Array of objects.\n\n### `StreamTest[version].toText(cb:Function)`\n\nCreate a writable stream collecting written `chunks` and calling the `cb`\n function when it finishes with the whole content converted to text.\n\nThe `cb` function take in an error and a string.\n\n## Contribute\n\nFeel free to submit us your improvements. To do so, you must accept to publish\n your code under the MIT license.\n\nTo start contributing, first run the following to setup the development\n environment:\n```sh\ngit clone git@github.com:nfroidure/streamtest.git\ncd streamtest\nnpm install\n```\n\nThen, run the tests:\n```sh\nnpm test\n```\n\n[//]: # (::contents:end)\n\n# Authors\n- [Nicolas Froidure](https://insertafter.com/en/index.html)\n\n# License\n[MIT](https://github.com/nfroidure/streamtest/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/nfroidure/streamtest","bugs":{"url":"https://github.com/nfroidure/streamtest/issues"},"license":"MIT"}