{"name":"pumpify","version":"2.0.0","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":"c5c4d8d4bb7c50829ac388ce27d66b799dc7e2fe","_id":"pumpify@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-ieN9HmpFPt4J4U4qnjN4BxrnqpPPXJyp3qFErxfwBtFOec6ewpIHdS2eu3TkmGW6S+RzFGEOGpm5ih/X/onRPQ==","shasum":"975519e5a9890ae0fb4724274e3fec97e43a30b6","tarball":"http://registry-npm.ywwl.com/pumpify/download/pumpify-2.0.0.tgz","fileCount":6,"unpackedSize":10156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAV28CRA9TVsSAnZWagAAYL8P/jlOXfgcDE3PPBKHZGHN\nnW+Qx+CP8aZu6s27VjRXTiriBqguLGoWeeBHcYDbBzHxi/apHQJBNRzs3TFK\nA+4YTFIndYaKuQr77s5ZGkUcj//2Xjh+oRjTtn6wyrPFcyd9iJd3QJLxy1kZ\nd4SrftLTkj/VXYhvZpFDGsA3SMR46uBKqao/rElpW8jl1RyDtWC0J3a0KXTJ\nNeCNSTEdXo0b1uaCbERGX74pBZhMsGjQjExxJ9c5XUBn/1a+ZtZgBrQQXmBg\njuptpUAuhVUGaptffLxFGp1l3eSKxnojfwCd1ra1Tubf0nlDo3Q634ORbNbA\nM9ryfzNJPeL0O/FDUFJUNVZFWdmESY24cQaX9wT5+Q6HWkOKoS/JQldm3AsO\n1Q5lg0eSY5mC9oQ6S/yO0fThq7/dNmIHCDyoWyhXeTEH/k/UHuiO83CdkQ9t\nAxr4xOUsf0mHXO58zjlQ6tappSQBJqGSNyAtKTiotWg3q3YF8OIKaF7rFjaT\nkJe++S12qPgRrjcsKIpLm05UPo19G3fyykZJd0yfW+AFIode4vVZ4pHLojdC\nfEliUuoomGQobrO6HwlyvtjorDNVLsrX3mGEFM+BZAnGAgu8KVexVGqoLnDy\nQ1yrekpBeae7HukugbKNgYvIwhecP1GjRC0jBrAANVNel4IhVgJ+PGBebFSM\ncnPd\r\n=FA/v\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWCSQS6NsdmxFcfS6NK10iljACP+oVU+ZXlE0KudsPVAiB1v9DsduQwrr9gIibRVv7aCVKGWX8KAS9LqZDFlxFAYA=="}],"size":3445,"noattachment":false,"key":"/pumpify/-/pumpify-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pumpify_2.0.0_1560370620134_0.5095998575487775"},"_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":1560370620232,"_cnpm_publish_time":1560370620232,"dist-tags":{"latest":"2.0.1"}}