{"name":"pipe-io","version":"4.0.1","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":"^11.1.0","eslint-plugin-putout":"^3.5.0","gunzip-maybe":"^1.4.1","madrun":"^5.4.5","nodemon":"^2.0.3","nyc":"^15.0.1","pullout":"^4.0.0","pump":"^3.0.0","putout":"^7.22.0","supertape":"^1.2.3","tar-fs":"^2.0.0","tar-stream":"^2.1.0","through2":"^3.0.0","try-to-catch":"^3.0.0"},"gitHead":"905a39dc5c96d17cbd721856f9c97dc9640852ae","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@4.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Wj9G85wJCpIgHq7xd0g4/IDjrA51pxmd+m9AbTiC6zRmWzVC6jOJIUyf92r7/B2+NE6zwqZIz0BZr85xkc3/Sg==","shasum":"5604da004caa2e4a08ccc338884888ea618ff5cc","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-4.0.1.tgz","fileCount":5,"unpackedSize":14129,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelgj5CRA9TVsSAnZWagAABX0P/R7DwLZNSbqVooUf+bTx\nbbLCODea0/UvJi+fRPhCYfEatBiiJd58NwjZ3MN8RxO7p1xAJHQ2lkF/a5Oh\nWRR68fnJhncLZgU35TuUNK9vyeBiYs5iO/ooMea+PM/D0VP5NJOIuY7zg5vP\n+xXH0YTF7hi8x9dvIZZmVlHHuSkQE/7GribZPkXW/1pQUKWED8vQraTTGCvD\nNzNkbqYLerniojZYIsmsf0czwILkoyJQeSIMRge2vi7CwnRegVhwwhLOgR3g\nnX2DD9O0Qj4CiokN8PVXRL5gp3b2J81z7pAIKG2oqQcG4p8VpN6l2tKkl7KK\nXezQviWVQfUNbulnEO8euaoUUwDP6q1VmQnLmGE9zz2wqALflT/11Sgtik3G\nLbh3zhAeRxpBwdS88ULoh0Uv7RnflbXjRyEYGJWSrSaPLY9r56uyDjzoG5B3\nAlnxoqt9ydvmz0+mkj03jIGdeuamRgWVfUC61tkbvHZYX0018JHJEVLpPdo2\nhNY+mHfBfVVQYaEDI8XweH6cU/cjywi0DvrsNZ/+yiMzMKIaKP2g1UUxB4ql\n+FWqZxJaM19WVhtMW0Rzk0qkoz6ypqwGiOp+UmhYy1naxKFYabUVIfiCOT0T\ndbzV3GB42SYrEomtPrmu1L9cuw5YfpSlCPUpbYnkxjx8Z9RfSozK2v2uTtnw\niAQX\r\n=Ib2y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFY9S6MhOivI34199AB0yq8lg7SwNkioFuVK48BFfIw5AiEAhEEL3LM8bW1zWkzlZyhVP2buiI0DAlmyWq7libeTD4M="}],"size":4575,"noattachment":false,"key":"/pipe-io/-/pipe-io-4.0.1.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.1_1586891001207_0.9855161347987662"},"_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":1586891001368,"_cnpm_publish_time":1586891001368,"dist-tags":{"latest":"4.0.1"}}