{"name":"pipe-io","version":"4.0.0","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":"madrun test","fix:lint":"madrun fix:lint","lint":"madrun lint","lint:test":"madrun lint:test","watch:test":"madrun watch:test","watcher":"madrun watcher","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"license":"MIT","engines":{"node":">=8"},"main":"lib/pipe.js","devDependencies":{"coveralls":"^3.0.0","eslint":"^6.4.0","eslint-plugin-node":"^10.0.0","eslint-plugin-putout":"^2.0.0","gunzip-maybe":"^1.4.1","madrun":"^3.0.3","nodemon":"^1.11.0","nyc":"^14.1.1","pullout":"^3.0.0","pump":"^3.0.0","putout":"^6.0.0","redrun":"^7.0.0","supertape":"^1.2.3","tar-fs":"^2.0.0","tar-stream":"^2.1.0","through2":"^3.0.0","try-to-catch":"^1.0.2"},"gitHead":"b51327d415f7a5dbb613c0bb0a853655c070b510","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@4.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-zq3qwMvYVd/fyxAz40ky5X1LtYt54/w4bX+rjny4jTIw7osBKlRNyPwsNwcI23iqfMSqrf7j94SW09q+038V7Q==","shasum":"cc72bac400b3658171537ba2dba704d843ab1d55","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-4.0.0.tgz","fileCount":5,"unpackedSize":13789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgPK/CRA9TVsSAnZWagAAKtgP/1nsyNwmQ9fxoEd16UFX\nypqOFaQV/fTnPFpw7u3WvHVYwWjUIt7A0eFW/x6Zb/xRcTrS8j7gcGzIRGRV\nvHV5iDjPRzR8met91yqfNO1uYWrcUvP2nAoGX4mikKpvcmkhVpsIQPy3BmY+\nnuTLfv0+sjLpn75i1XnRkCRsWvh3mAYD8LCVwrveMU0MS/T3J3jsllA3jz8h\nxGU7cZA3gmef5R5u5fPpRyk4/3Cv1pX4MQMK/o2mhumBM2CKXgyIHtLmdVEu\n/N+imUwkIF+xugd2BpYmMt5JV3YkcoZeIpsk+qeAIIW+0O1P9vodJPUsM+7j\nvKxeqrKQ64MkoPbFQ3Im4kc0qA+f5OUw9GzWqkG8PEUmy9cli5wNA1QQ6rG+\nlYkltdiMQGNuFvDID079Y/G/b4xCQ6c4UZO404oYJXwLyB4dHdh8RSViiLdb\nhCSGWUAQhra/b5BmKuUw1+nkwDT97dyPL4jVOhGa0wQ4AvZzLuCgNsXCy0K5\nMkd9MhKi1IGPhVZuHlugD9iSwkg0flCRWpJfIWzrDOF3q3SOFC02H2vW/+YJ\nu9JdhxIFJy4ub7bYASeuluiAvkgUDtQPd9d8gamdPwt0y2Oj+sLVSdr89thZ\naUIoadp0INepli+1wHBl8ADAYNgROdOV+iP3o3BxepDnDosDXLpcGxy0PyFZ\nA3yL\r\n=tsY1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIByzA7t6AO2g2FR5NArW/oQ+771yoqfAKStE5q+8xrR4AiEA6leQgxJ7YydhblmKu0VqMk3qR1rHMYwQXRyYg9x5Cwg="}],"size":4507,"noattachment":false,"key":"/pipe-io/-/pipe-io-4.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pipe-io_4.0.0_1568731839059_0.41514322581136387"},"_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":1568731839171,"_cnpm_publish_time":1568731839171,"dist-tags":{"latest":"4.0.1"}}