{"name":"pipe-io","version":"3.0.11","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"Pipe streams and handle events","homepage":"http://github.com/coderaiser/pipe-io","keywords":["pipe","stream"],"repository":{"type":"git","url":"git://github.com/coderaiser/pipe-io.git"},"scripts":{"test":"tape test/*.js","lint":"redrun lint:*","lint:lib":"eslint lib","lint:test":"eslint -c .eslintrc.test test","watch:test":"npm run watcher -- \"npm test\"","watcher":"nodemon -w lib -w test -x","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{},"license":"MIT","engines":{"node":">=4"},"main":"lib/pipe.js","devDependencies":{"coveralls":"^3.0.0","eslint":"^5.3.0","eslint-plugin-node":"^8.0.0","gunzip-maybe":"^1.4.1","nodemon":"^1.11.0","nyc":"^13.0.1","pullout":"^3.0.0","pump":"^3.0.0","redrun":"^7.0.0","tape":"^4.2.0","tar-fs":"^1.14.0","through2":"^3.0.0","try-to-catch":"^1.0.2","try-to-tape":"^1.0.0"},"gitHead":"22adb31b0e0f7b12a07e47e26b9a141bcb288909","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@3.0.11","_npmVersion":"6.4.1","_nodeVersion":"11.2.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-Mj9M+vdptBRBqHOf52kIDVeKVb2gLHuuqQyTemBfaK8J+5tdQhIL4RFP3bQ15G7+2Ib/RCHBinnRW7TJz4VuaA==","shasum":"61cf893c7887908397927675a1fb5188fffbc9c5","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-3.0.11.tgz","fileCount":5,"unpackedSize":13598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9VZrCRA9TVsSAnZWagAANyEQAJVEphgUaP4tVE1KzTXo\nxSnXxIg8r01423d/Hb3yWYHfJfjkJQI+wYgdVkpgbzolkl8xDszqI74SS+W7\ntwTY7RlrPy5gI13B1jESUZ3d+/2ztRN9gKLIrie1NWIMvUEl/m+tihpB8CJ/\n5mOgq81FCJvgLXFG+flJGuOxidrXTL1ZGBJI4diGBh5YVMRBc7BgZB5pcf5p\nwTYWkNUXlEO3b8vOPVlOanVeu/dxFddtViIkKpvsE9plRlJY3dGzKShwJZek\nSttBhZ11XmbU/PUoagrs7h1GytOuAePnSzyHDeXx8kDAcjCUC/qB+5pdMBUs\nwfAeADTxoPeMsmYHVUgA7cJuj2yjBh1UM6SsG2yYzz1If5UCjJW1629mS5Tk\nddNRzzVbttgKtd8hnAv0s/bzfPardH0jgZLj1pgnh3+fdz4b+7lulO+SQtv0\nocBySEFNmJXtdwViiqXp7QVvVQOaz7Oan/9pPe6d3m1fmu1tI1EonJmAjV/0\nCP2jBHWMh4H9sJLcaPgJ9FfmyubhH3NZMNVt69WVk9MgzAfs3Vn/j5I/nnXL\nxLMM6yw4qu/bBn8kXivi8flDQlz1v01HbLmCYbTcv8AClEyC4toB222LeIIr\nnWdfoeMReEaLsg9vMAQmW6T4i6ep3NaEhKhkjWVPKSco0wsAENugIxMFhZsK\npbA+\r\n=GGIN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5fQLKjUoVvmKKhSkGU8/gDMNseXn081408bnvRVDP3AiAMtO1NuJ9mwDt6/91j55ZEIxVdtqe1/MftW4lfYIpHrw=="}],"size":4454,"noattachment":false,"key":"/pipe-io/-/pipe-io-3.0.11.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pipe-io_3.0.11_1542805098569_0.7808806079537629"},"_hasShrinkwrap":false,"readme":"Pipe-io [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n=========\nPipe [streams](https://github.com/substack/stream-handbook) and handle events.\n\n## Install\n\n```\nnpm i pipe-io\n```\n\n## API\n\n### pipe\nCreate pipe between streams and adds callback wich would \nbe called once whenever everything is done, or error occures.\n\n```js\nconst fs = require('fs');\n\nconst pipe = require('pipe-io');\nconst tryToCatch = require('try-to-catch');\n\nconst NAME = 'README.md';\nconst NAME2 = 'README2.md';\nconst readStream = fs.createReadStream(NAME);\nconst writeStream = fs.createWriteStream(NAME2);\n\nconst [e] = await tryToCatch(pipe, [readStream, writeStream]);\n```\n\n## Related\n\n- [Pullout](https://github.com/coderaiser/pullout \"Pullout\") - pull out data from stream\n\n## License\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/pipe-io.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/pipe-io/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/pipe-io.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/pipe-io/badge.svg?branch=master&service=github\n[NPMURL]:                   https://npmjs.org/package/pipe-io \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/pipe-io  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/pipe-io \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]:              https://coveralls.io/github/coderaiser/pipe-io?branch=master\n\n","publish_time":1542805098671,"_cnpm_publish_time":1542805098671,"dist-tags":{"latest":"4.0.1"}}