{"name":"pipe-io","version":"3.0.12","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":">=4"},"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","through2":"^3.0.0","try-to-catch":"^1.0.2"},"gitHead":"0a02e6a9ccd701afb9555022b449c0613566e151","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@3.0.12","_nodeVersion":"12.10.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-reR49NtpkVgedzCQ9DPV727VAZKw8Ax3N/3iQwD1vHxTmswsuhurFh0Z5woVNM1OhHDigKzDN7u4kNipAA9yyA==","shasum":"90ff84888876a1feccbf9f753eacf22b260b2884","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-3.0.12.tgz","fileCount":5,"unpackedSize":13806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgO9FCRA9TVsSAnZWagAA4tAP/jTncjVvcyLkDxfNROH4\n8cf9JFnlxpWWc5kQMDBRlgoaTfdmkjMTMZG4wdDxsIgyotxJCEaYkvuTXbOv\nN7G9HF5bvlwiA5Q40F1q2LUmhnIzYjN3Yqx3a3/Ip5mU/OPXmfGLpdVP02DO\nnrh0Vt32D49fCLSswVFAff9i2nPVKed9sHoaQDP4NowxVozVYRxkrDtAuKe9\nm1iIZ5zFXc0NAp29MJrulddyAFyPgY2PN25LpCLAbNVNz06nrtXpmy8TpD2B\nxFV7g96gPtUjGXR1m291uEKwPcr0kKOvEIGF4JpOypcHcIVWLj75CB+bNeEY\nkOqfnftRBgn2r2yF4AVmCn/j3DJPgjC3NOxeEOcm8vzVadGJdA/PeOKX94DT\nQRLHUuSiQYZnxXbnrbIsUf6XcXYVCm2evRhNz5TydGyDwpgsmmEseoHSVeIG\nq0U3RyGzUd+5Nvq68/H5L0mK69G17C0mDMm2zCHNUnX0AHGY108SQAG9Yi4y\nFT0nFvPfKkjn1fK2RMZOZGI0YhbUKQZ6s5PFhvzFyEdySgecI8lwxjOIwh/0\nHUc1N8I1H2vUnysWV2h49pSWo2gzp5gLnFSOpCPOQoG4rAq87JDk0tGrmpHa\nMTmMbexCcxM62Ds6nehCGe2ooXkvQChpnPvRLJxaDKNxYhnP023QgKtwkipj\nfzSF\r\n=Ae0i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/2I3DJoJngNL6Ngl/QYvI24UrhGvaZ6CzSt6gI/yADAIhAIT5qFU+v695dmvtt9e36WAZ3gfBB7+keV5nLvyJb664"}],"size":4503,"noattachment":false,"key":"/pipe-io/-/pipe-io-3.0.12.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_3.0.12_1568730949007_0.12352488347042723"},"_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":1568730949116,"_cnpm_publish_time":1568730949116,"dist-tags":{"latest":"4.0.1"}}