{"name":"pipe-io","version":"3.0.9","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":"^7.0.1","gunzip-maybe":"^1.4.1","mock-require":"^3.0.2","nodemon":"^1.11.0","nyc":"^13.0.1","pullout":"^2.0.0","pump":"^3.0.0","redrun":"^7.0.0","tape":"^4.2.0","tar-fs":"^1.14.0","try-to-catch":"^1.0.2"},"gitHead":"23f4c8dffc022154052d2bade14366d71a472e9f","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@3.0.9","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-wxR7jXiZRjIjGr2uM9cmnFQIKkeCYfDyztcRKsOAwAkZxIs12UJc3zGEOHbZc0JXMUYf6VDKjod75iwePfhd4Q==","shasum":"51355d66cf04c8ea5847cb81806b64127ab5681e","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-3.0.9.tgz","fileCount":5,"unpackedSize":13403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtJx4CRA9TVsSAnZWagAAKZQQAJiDPLsfDuZ2sPxcgun5\n5HqNn1+pnjZafxsh0jlafhhuQaUAbYYi5o1u10wkx/2LlZ9cUnzqvolwwqsG\nivHeK57aDHsYpj73WVqa5R5Dqsv0drh9KdODcdupMfCqT5G5IhQqwx959gGh\nK4T7xPOeS6d0TG/FDs/kO4kGzgDsuJsFL39WVF5INa+rY//YcmaWxp8NK+oc\nTj9rbqrphhGITKp3lu3UjBA/rKSE6zQ5/FVpwB3St2CTtCmxkU3bnwXSGtZG\nR9Wj5JrL+GlDec3JLKIWfBHd26e64cPXu6JA/bWLU1i7PnGcjl0TSr8yFhVH\nyAR05VAcAiVA6AOnsMTzqWwkUGmNFa+XuhFuD5ayVOyITVVNkEHREc3V1F7n\nCbGNj9sCx2Yld6z+fmep8YQrc2impiSgJJuLFO5JZwp0T6TdfkmfXQOd9W3L\nYVb1frB91/MgjnEIz+SBYrIKjY767HmjXxX3uR9tMhpJT9QznEZRhj7PufBV\nZaTF/fPVft9d6jGuksC7U2za2Df5d4IfipAVH3pVtRR68ta8bHjc7BADviH0\nzp7euRXC46syAkw1OJycLKzSU9un3e6OsjZwuqLXNu6+FlQr5xxnvxJzDJZo\nXN8lzJodwcYf4JLG9IUSKit6n9h+GLl1jKXSrm99kbYLAB0brHvq8PGNnxML\nK9nj\r\n=3FLD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKh6gtv+PEcGTMbtBKrydQ4LhoxdzcJRSL3NOCOIopqAIgJGB3EoyeI/zNEUk4w42xbcNLJUwqIA8Obk2T6DdDdi8="}],"size":4401,"noattachment":false,"key":"/pipe-io/-/pipe-io-3.0.9.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pipe-io_3.0.9_1538563191480_0.37745284804576573"},"_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":1538563191631,"_cnpm_publish_time":1538563191631,"dist-tags":{"latest":"4.0.1"}}