UNPKG

pnpm

Version:

Fast, disk space efficient package manager

121 lines (120 loc) 5.93 kB
{ "_args": [ [ { "raw": "unbzip2-stream@^1.0.9", "scope": null, "escapedName": "unbzip2-stream", "name": "unbzip2-stream", "rawSpec": "^1.0.9", "spec": ">=1.0.9 <2.0.0", "type": "range" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/bzip2-maybe" ] ], "_from": "unbzip2-stream@^1.0.9", "_hasShrinkwrap": false, "_id": "unbzip2-stream@1.3.3", "_location": "/unbzip2-stream", "_nodeVersion": "8.9.3", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/unbzip2-stream_1.3.3_1549638666008_0.7208132651821468" }, "_npmUser": { "name": "regular", "email": "jan@lagomorph.de" }, "_npmVersion": "5.5.1", "_phantomChildren": {}, "_requested": { "raw": "unbzip2-stream@^1.0.9", "scope": null, "escapedName": "unbzip2-stream", "name": "unbzip2-stream", "rawSpec": "^1.0.9", "spec": ">=1.0.9 <2.0.0", "type": "range" }, "_requiredBy": [ "/bzip2-maybe" ], "_resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.3.3.tgz", "_shasum": "d156d205e670d8d8c393e1c02ebd506422873f6a", "_shrinkwrap": null, "_spec": "unbzip2-stream@^1.0.9", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/bzip2-maybe", "author": { "name": "Jan Bölsche", "email": "jan@lagomorph.de" }, "bugs": { "url": "https://github.com/regular/unbzip2-stream/issues" }, "dependencies": { "buffer": "^5.2.1", "through": "^2.3.8" }, "description": "streaming unbzip2 implementation in pure javascript for node and browsers", "devDependencies": { "beefy": "^2.1.8", "brfs": "^1.2.0", "browserify": "^16.2.3", "concat-stream": "^1.4.7", "stream-equal": "^1.1.1", "tape": "^4.9.2", "tape-run": "^4.0.0", "uglify-js": "^3.0.10" }, "directories": {}, "dist": { "integrity": "sha512-fUlAF7U9Ah1Q6EieQ4x4zLNejrRvDWUYmxXUpN3uziFYCHapjWFaCAnreY9bGgxzaMCFAPPpYNng57CypwJVhg==", "shasum": "d156d205e670d8d8c393e1c02ebd506422873f6a", "tarball": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.3.3.tgz", "fileCount": 7, "unpackedSize": 133237, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXZwKCRA9TVsSAnZWagAAED8P/jaKzU3ERKDxUcLUr507\n+u/gibLdF1m0La/Vkt6I9QqRVPlzmKg/JVqXmYDZwSB1vvxuqgCyDj1EAxXL\nU/4o6XdFYvMVPMGPXk8qE24PB1mON6xeS951lWuh+gUJaDM8Y600QMGODvmh\nwo1CmrURdOcF2TytDiQnrrL23aCtPNiQbz9z4aOfsOulSV1bRXk4I61FQoTJ\n4AJJBH9hfCc94DCkA3u4J6zvRSszkDPPi/lCxF/g756Pzc+upo03U122pBOT\nggDyxpXNzESXKcPeSNQgyg1w32QkCThViXXNz0q8od5Z498/pxnyURskiz/9\nZjXk4L8/1iOHvzhiSbgXTOLtcbOSXqSyRBjk+p1aDeVTrcTdrg1h35zosoUz\nbQjJ8Smr9aJFFe0z351PF/tMtg6vr296tKohGL7yUBUQumxkb6ESLqRx9sOH\nJ1cShWrDuLRq5GSZiGj44BCJlaUcIyfKC+jjxXJUwBGvaJrsct1wEroWh1qy\n1SsH1kThSxv4Cb6Wwj3pkN1LfzHpAtNau+eqyv0OPQCVJbdbPux3bG5zaB8r\nyUCK/WDIPg/J4uq27nQ/F3inOznR0elV/sO10EywXZ3lDCzw7Bd4N4/YUVx0\n0P9bNNW53Mahm3a6ccwdL+jIrbCxEgy3fHXbfZh/0T67nt+yx5KS+R3iFGwf\nl/Xu\r\n=FxKC\r\n-----END PGP SIGNATURE-----\r\n" }, "files": [ "index.js", "lib", "dist/unbzip2-stream.min.js" ], "gitHead": "521eca41be2bc9e56fc715968972cf511dafc361", "homepage": "https://github.com/regular/unbzip2-stream#readme", "keywords": [ "bzip", "bzip2", "bz2", "stream", "streaming", "decompress", "through" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "regular", "email": "jan@lagomorph.de" } ], "name": "unbzip2-stream", "optionalDependencies": {}, "readme": "[![npm version](https://badge.fury.io/js/unbzip2-stream.svg)](http://badge.fury.io/js/unbzip2-stream)\n\nunbzip2-stream\n===\nstreaming bzip2 decompressor in pure JS for Node and browserify.\n\nBuffers\n---\nWhen browserified, the stream emits instances of [feross/buffer](https://github.com/feross/buffer) instead of raw Uint8Arrays to have a consistant API across browsers and Node.\n\nUsage\n---\n``` js\nvar bz2 = require('unbzip2-stream');\nvar fs = require('fs');\n\n// decompress test.bz2 and output the result\nfs.createReadStream('./test.bz2').pipe(bz2()).pipe(process.stdout);\n```\n\nAlso see [test/browser/download.js](https://github.com/regular/unbzip2-stream/blob/master/test/browser/download.js) for an example of decompressing a file while downloading.\n\nOr, using a <script> tag\n---\n\n```\n<script src=\"https://npm-cdn.info/unbzip2-stream/dist/unbzip2-stream.min.js\"></script>\n<script>\n var myStream = window.unbzip2Stream();\n // now pipe stuff through it (see above)\n</script>\n```\n\nTests\n---\nTo run tests in Node:\n\n npm run test\n\nTo run tests in PhantomJS\n\n npm run browser-test\n\nAdditional Tests\n----------------\nThere are two more tests that specifically test decompression of a very large file. Because I don't want to include large binary files in this repository, the files are created by running an npm script.\n\n npm run prepare-long-test\n\nYou can now\n\n npm run long-test\n\nAnd to run a test in chrome that downloads and decompresses a large binary file\n\n npm run download-test\n\nOpen the browser's console to see the output.\n\n", "readmeFilename": "README.md", "repository": { "url": "git+https://github.com/regular/unbzip2-stream.git", "type": "git" }, "scripts": { "browser-test": "browserify -t brfs test/simple.js | tape-run", "download-test": "beefy test/browser/long.js --open -- -t brfs", "long-test": "tape test/extra/long.js", "prepare": "mkdir -p dist && browserify -s unbzip2Stream index.js | uglifyjs > dist/unbzip2-stream.min.js", "prepare-long-test": "head -c 104857600 < /dev/urandom | tee test/fixtures/vmlinux.bin | bzip2 > test/fixtures/vmlinux.bin.bz2", "test": "tape test/*.js" }, "version": "1.3.3" }