{"name":"pipe-io","version":"3.0.3","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":"^4.0.0","eslint-plugin-node":"^6.0.1","gunzip-maybe":"^1.4.1","nodemon":"^1.11.0","nyc":"^11.0.2","pullout":"^1.0.1","redrun":"^6.0.0","tape":"^4.2.0","tar-fs":"^1.14.0","try-to-catch":"^1.0.2"},"gitHead":"10761907e5c7839c9e70feb2f540c5fa0935a026","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@3.0.3","_npmVersion":"6.0.0","_nodeVersion":"10.0.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"integrity":"sha512-7s7HlpMq6WAvd+Xbc2C6NQKEIkDbaSUm0CYtNsjidfyOpbTJmFcvzon47VkMJ6nszEj/X4t4lQs5bqeXgrzMgg==","shasum":"c672c8f1cf21c559379c681b398e16aed8b2a585","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-3.0.3.tgz","fileCount":5,"unpackedSize":12320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8Y/ACRA9TVsSAnZWagAA7asP/iVcwoswt4nbcFlDt9mf\nDGfrTTCAD8YoDYfe8o9bbSrCp6Bw0MdG8KCEXQs/AHSct9BMgotqjGoI8HSy\nw0QYUPcb4Yxfm6BPIcXfzgImA/tH9dO2r/bnO1uy1N1DywFLVNDcB8mxlKnF\nYEutQCbRPNgJv6ptTnpfJnMO9L/uxshmmKz/w32xlppg0QeMICm+0JLhpEAT\njkXw7zyXB+teKf8fESnL5CrVlcWNYyGhQt6gIv08RgG4Jqa4NBHe7bWyN0xs\nbI9MH/z02WLQCE7AoNfrUdHd+HB6Uqatczg3560U4Iv70lFtY9KEV7uXhTK3\nsuTmW1AItI9KqJLsCkB288dLPNIshBEN41bVeULyTBg35X4c5ZuHcnI462Dz\nHefNbouPWlqphGb5zbr+UVRJcNTcuVpEOL4X+tVh1I7FqTMqAUzZnZ9NH14x\nxSG8I0cRtz8AMqkN+F9S3vfsX0DaJtG0TAKee8nLVQqGpCKRc6qXYRgUAKe4\nKUamfuDhhkhTGkYnA+h2Gk6riFCFrlBs32n7Ml5TwTu6Dhc2vX0aPHd1DZX5\npqXEgSPjQ4DrdAu3Hk/4bM04tWLMw6KAUhAEZ3ImE0sHSKmHMMqDZElcOBx+\nAWOYcyoZiS316amfysaCeVHbdStn8dHMiPXBv71LekQOL4wlqp1H6fTpnt8i\nT9YU\r\n=cnOn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeM3aFy5Bcb624F4umtMTheZSUI03b33szvoPwmw2GiQIhAM1EnMIf3D7AjOXh2Ay2S2//9ECj8vcFewQrDh9wCJp6"}],"size":4153,"noattachment":false,"key":"/pipe-io/-/pipe-io-3.0.3.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pipe-io_3.0.3_1525780415819_0.8130984662464114"},"_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":1525780415888,"_cnpm_publish_time":1525780415888,"dist-tags":{"latest":"4.0.1"}}