{"name":"pumpify","version":"2.0.1","description":"Combine an array of streams into a single duplex stream using pump and duplexify","main":"index.js","dependencies":{"duplexify":"^4.1.1","inherits":"^2.0.3","pump":"^3.0.0"},"devDependencies":{"tape":"^4.10.2","through2":"^3.0.1"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/pumpify.git"},"keywords":["pump","duplexify","duplex","streams","stream","pipeline","combine"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/pumpify/issues"},"homepage":"https://github.com/mafintosh/pumpify","gitHead":"106097fbb7a09edf7c5f6f387ea2533fde4d0d47","_id":"pumpify@2.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==","shasum":"abfc7b5a621307c728b551decbbefb51f0e4aa1e","tarball":"http://registry-npm.ywwl.com/pumpify/download/pumpify-2.0.1.tgz","fileCount":6,"unpackedSize":10208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdk1pgCRA9TVsSAnZWagAA+J4P/jcN/RwROcN1mJ3+WIrz\nEjyhJHlYc4Z7YFLZkRZr/vql+HH5+29mozjWkGo2Ombz5yZ/ut64j4CbOLxd\nAa4sgfWrJyZAuNbtyIAPusXV8NSXkA9E1OkQG0kwPoYXMtehGt9Lt//NJUzq\nInin4XhlNhugQtUn12HRuWwB3rPnc8G6c9ZXLEAGt839aaohUadCIXjHurAa\nmln96dNA4KmUHSLrsoLrMJld7fH8psdETW8Qf5pAVWvoqcr+ytg12Y1hFt/K\nmBnZH0yZmVgZCOWL27XDeZrwYDCBW3mWIsgvH/OxALGHt7zgMgqRkVsE+rGO\nhbCeFDtArBS1sZQ+F3Upv8jonEi2sXw0i7QADk5Irc1a0TUfoYloqXp46noX\nH23utviojPaBna8qHf35QdGcXMFeQJYC/NWFBJxA8FbCge18pTccTUuoSCbw\n+JMbvn/gHG2MN6624ceZdVUYe0pmF6VZoBAU0rFNG7Okb8qgjmuQP4mXf3M1\nw8/MXgOELO8QS9YoA+S2dPQstWcSjUPzOnd7Ea4IP8e9lfPpL8eG30vGsaJ6\n2VGdFEauftI3raHFbOocrCa3pOhsbVVgECzc9eJpt0BG3e8nFah7cjRJnzOf\nCtELQsPLkp43MC1xHt8HP6+OCIE3sWM6fqTq1riaCnGHzHlF7xEW0G2bNvkb\nS/Y/\r\n=7iau\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjdzcW4UJLc/FfHmYGUf/HHBXh/nP3xp6VpaWs/rH+1gIhAIr1sz2GQn/15q7Pi3keIFbxJyhsTfsW1wFHuqtalWme"}],"size":3462,"noattachment":false,"key":"/pumpify/-/pumpify-2.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pumpify_2.0.1_1569938015896_0.2381461797676594"},"_hasShrinkwrap":false,"readme":"# pumpify\n\nCombine an array of streams into a single duplex stream using [pump](https://github.com/mafintosh/pump) and [duplexify](https://github.com/mafintosh/duplexify).\nIf one of the streams closes/errors all streams in the pipeline will be destroyed.\n\n```\nnpm install pumpify\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/pumpify.svg?style=flat)](http://travis-ci.org/mafintosh/pumpify)\n\n## Usage\n\nPass the streams you want to pipe together to pumpify `pipeline = pumpify(s1, s2, s3, ...)`.\n`pipeline` is a duplex stream that writes to the first streams and reads from the last one.\nStreams are piped together using [pump](https://github.com/mafintosh/pump) so if one of them closes\nall streams will be destroyed.\n\n``` js\nvar pumpify = require('pumpify')\nvar tar = require('tar-fs')\nvar zlib = require('zlib')\nvar fs = require('fs')\n\nvar untar = pumpify(zlib.createGunzip(), tar.extract('output-folder'))\n// you can also pass an array instead\n// var untar = pumpify([zlib.createGunzip(), tar.extract('output-folder')])\n\nfs.createReadStream('some-gzipped-tarball.tgz').pipe(untar)\n```\n\nIf you are pumping object streams together use `pipeline = pumpify.obj(s1, s2, ...)`.\nCall `pipeline.destroy()` to destroy the pipeline (including the streams passed to pumpify).\n\n### Using `setPipeline(s1, s2, ...)`\n\nSimilar to [duplexify](https://github.com/mafintosh/duplexify) you can also define the pipeline asynchronously using `setPipeline(s1, s2, ...)`\n\n``` js\nvar untar = pumpify()\n\nsetTimeout(function() {\n  // will start draining the input now\n  untar.setPipeline(zlib.createGunzip(), tar.extract('output-folder'))\n}, 1000)\n\nfs.createReadStream('some-gzipped-tarball.tgz').pipe(untar)\n```\n\n## License\n\nMIT\n\n## Related\n\n`pumpify` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.\n","publish_time":1569938016066,"_cnpm_publish_time":1569938016066,"dist-tags":{"latest":"2.0.1"}}