UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

111 lines (110 loc) 5.6 kB
{ "_args": [ [ { "raw": "pumpify@^1.3.3", "scope": null, "escapedName": "pumpify", "name": "pumpify", "rawSpec": "^1.3.3", "spec": ">=1.3.3 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mississippi" ] ], "_from": "pumpify@>=1.3.3 <2.0.0", "_id": "pumpify@1.5.1", "_inCache": true, "_location": "/pumpify", "_nodeVersion": "9.11.1", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/pumpify_1.5.1_1526480433622_0.7662524993524624" }, "_npmUser": { "name": "mafintosh", "email": "mathiasbuus@gmail.com" }, "_npmVersion": "5.6.0", "_phantomChildren": { "end-of-stream": "1.4.1", "once": "1.4.0" }, "_requested": { "raw": "pumpify@^1.3.3", "scope": null, "escapedName": "pumpify", "name": "pumpify", "rawSpec": "^1.3.3", "spec": ">=1.3.3 <2.0.0", "type": "range" }, "_requiredBy": [ "/bzip2-maybe", "/decompress-maybe", "/gunzip-maybe", "/mississippi" ], "_resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", "_shasum": "36513be246ab27570b1a374a5ce278bfd74370ce", "_shrinkwrap": null, "_spec": "pumpify@^1.3.3", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mississippi", "author": { "name": "Mathias Buus" }, "bugs": { "url": "https://github.com/mafintosh/pumpify/issues" }, "dependencies": { "duplexify": "^3.6.0", "inherits": "^2.0.3", "pump": "^2.0.0" }, "description": "Combine an array of streams into a single duplex stream using pump and duplexify", "devDependencies": { "tape": "^4.8.0", "through2": "^2.0.3" }, "directories": {}, "dist": { "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", "shasum": "36513be246ab27570b1a374a5ce278bfd74370ce", "tarball": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", "fileCount": 6, "unpackedSize": 10155, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/D4yCRA9TVsSAnZWagAArkwP/0pfiaVudH+qySK2mz4y\nrFW1vPmRWeB/8xiAXufvhpQdsDVqEXp9395ha5G1ug9lQu+Xa90rBNWHY0nS\nyaXFplSJ+6wEFdfOj34Rz4FK001Xr0BPuzXxSOKLmzDElA79X7zzK4xaxdF9\npgt0gl3vJhbPCK/PlPvKZz6ltmt/u/od47P5dwdZFWzF4kCeeNJJ2FfpyDh2\nHLT5bhEXdAQML3u4D7aAVOyIda0ZKWO3oSGRNbRzVfamf6a03IwwRYHTnajH\nrM5wwKohclQTi4AxxgKpf4ZZrkMhhJCftmfSxqlLtpXYsep+7WoH0ZFBLL3+\nkb1SMt0PYZFwOs60ubWw8TjugWAzeUQQcMWe//nvpYYm7ZJsgCNDpQx+0iWO\n28/13IQiqjgsCjhKVYDsFOWYP2kCiFMHOfhnxqEpDb+q7DRAwt8tL573n7CQ\negun0TZrak9rr6N02uHK0VJZTs4Msrovaqf687AYDWYLhQRARVRjA3XotNgl\nip+rh9dUytyYGZRyu42t1yv3vNq1VekZbKs/P7comMgxJcoxgqFFHTALJ97Z\nqWY11S2bdiK8qDZcJfiHIZzsXiM4j9kisIPJdyrKnhtyvYD3dcCQaGGt85g0\nQEvLglx9ygdhmAWEzTDLwAw4TbdrGryXGwa9YQMR+a+DjUGyUgE1oSlqsXl5\ns5ZM\r\n=dN62\r\n-----END PGP SIGNATURE-----\r\n" }, "gitHead": "10f2659c137e291648c7179f69cfe50c3a726a2b", "homepage": "https://github.com/mafintosh/pumpify", "keywords": [ "pump", "duplexify", "duplex", "streams", "stream", "pipeline", "combine" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "mafintosh", "email": "mathiasbuus@gmail.com" } ], "name": "pumpify", "optionalDependencies": {}, "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", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/mafintosh/pumpify.git" }, "scripts": { "test": "tape test.js" }, "version": "1.5.1" }