{"name":"pumpify","version":"1.5.0","description":"Combine an array of streams into a single duplex stream using pump and duplexify","main":"index.js","dependencies":{"duplexify":"^3.6.0","inherits":"^2.0.3","pump":"^2.0.0"},"devDependencies":{"tape":"^4.8.0","through2":"^2.0.3"},"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":"cc2ffee09e39fa52f77c2dbf1a901a62b7b56e12","_id":"pumpify@1.5.0","_npmVersion":"5.6.0","_nodeVersion":"9.11.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-UWi0klDoq8xtVzlMRgENV9F7iCTZExaJQSQL187UXsxpk9NnrKGqTqqUNYAKGOzucSOxs2+jUnRNI+rLviPhJg==","shasum":"30c905a26c88fa0074927af07256672b474b1c15","tarball":"http://registry-npm.ywwl.com/pumpify/download/pumpify-1.5.0.tgz","fileCount":6,"unpackedSize":9417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7DsPCRA9TVsSAnZWagAAbXAQAKMxpOeT7Zs5trKADFEx\n/NCNA5wWc2xsRLafbTXxFiEGz1C7hI03n0Tp2vIsOwlSSNqAuNkAAQ3MvB8X\ngNrdim20/w2O0N2lzdr9bdQSVeXCnZ4ooZzbEuX1/57I6XJ/CB1QQwb4ylpl\n7SDliIvjR4PiO1GPzpLd9cTk1ytO8/ijb5UcGxYSjnhmIC0OcaYbNJNUe3Kq\n21vd4c5yBa/aveSLRyBedMyMQ9FSrjh1avk80vRub1ibhENoumchsC9mKFCF\ng3myRjE1UeY1jPJzfyXpmqGm7xiMBiUpJAA6eHFyrxuDb+kykfLv/Dd8JzNf\nxZc5tsp+Q0Si6LHtS2Z0ea58MllnMEVKJIpQEvNfey16SfWDFRjoQifcNdxD\nMXON4477AKqbuQEOtnO5uOtGJPRFrUc7KtYbEwZrlh+FfwyXz1gvJfklmjsD\nO7kZZ9qYdywUwr54H7lEz0xKvT6EjrcqC0wq8QdzxFrN2zbDOYgogX31zzXQ\n8TpyoEqqFioRfM0mT8fYMrfpFu1j9kHAcV/+P16juQMvwGFzorNE8hp8TiC/\nYmqhj6NOgByyeziblZEK1zfp3xpJCV7hFqqlazYsIFmOqTELEO+U6SLdt01/\nQg0+zLv1yMuVhNbiBgXCwkqOG34DaEwFIZIyHBLKpLrWj8TdsHp8xJurxH1e\nl+w2\r\n=VAVF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIkmqmORVHZ3yCk/mEcyAJof3NqYOUwIQQbLCfinJs2AIgEOD/jjWz+KCh9GYNDZzTVPjp+skfSlYmoZjnIIHdzHs="}],"size":3267,"noattachment":false,"key":"/pumpify/-/pumpify-1.5.0.tgz"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pumpify_1.5.0_1525431054074_0.523666047767994"},"_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":1525431054453,"_cnpm_publish_time":1525431054453,"dist-tags":{"latest":"2.0.1"}}