{"name":"pipe-io","version":"1.2.2","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":{"lint":"redrun lint:*","lint:lib":"eslint lib","lint:test":"eslint --rule 'no-console:0' test","test":"tape test/*.js","watch:test":"nodemon -w lib -w test -x \"npm test\"","coverage":"nyc npm test","report":"nyc report --reporter=text-lcov | coveralls"},"dependencies":{},"license":"MIT","engines":{"node":">=0.8"},"main":"./lib/pipe.js","devDependencies":{"coveralls":"^2.11.6","eslint":"^3.8.1","nodemon":"^1.11.0","nyc":"^8.3.2","pullout":"^1.0.0","redrun":"^5.9.2","tape":"^4.2.0"},"gitHead":"45f9ec6e9db53a8847f1f26bb2e41f6ed75bd641","bugs":{"url":"https://github.com/coderaiser/pipe-io/issues"},"_id":"pipe-io@1.2.2","_shasum":"7da34154e6ad46a41b4b742b655f2f16cc5e03b1","_from":".","_npmVersion":"4.0.1","_nodeVersion":"7.0.0","_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"dist":{"shasum":"7da34154e6ad46a41b4b742b655f2f16cc5e03b1","tarball":"http://registry-npm.ywwl.com/pipe-io/download/pipe-io-1.2.2.tgz","integrity":"sha512-r8tbhFJupe3zbJHO3ODgOQ67UNu97kJ0nAQzafEZ6PUPgLOcXLFYlCUvoys7KOt219jxOeHPQDTqmeWWX1cqEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2pTUwMcIJXFlt2/LSVqKTLP29a6i0xYA6fqgJtmYzCAiEA7Y4ZbmmKzcTN65qq9QD4QCh/SyHYG0UqdIZhNttyTQg="}],"size":4002,"noattachment":false,"key":"/pipe-io/-/pipe-io-1.2.2.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pipe-io-1.2.2.tgz_1477566978905_0.8254865871276706"},"directories":{},"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":1477566980758,"_cnpm_publish_time":1477566980758,"dist-tags":{"latest":"4.0.1"}}