{"_id":"@commaai/unbzip2-stream","_rev":"1-dc5d1bb45f1b5cde3321d4f6ba36f376","name":"@commaai/unbzip2-stream","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@commaai/unbzip2-stream","version":"2.0.0","description":"streaming unbzip2 implementation in pure javascript for node and browsers","keywords":["bzip","bzip2","bz2","stream","streaming","decompress","through"],"scripts":{"browserify":"browserify -s unbzip2Stream index.js | uglifyjs >> dist/unbzip2-stream.min.js","browser-test":"browserify -t brfs test/simple.js | tape-run2 -b phantomjs","prepare-long-test":"dd if=/dev/urandom of=test/fixtures/vmlinux.bin bs=50x1024x1024 count=2 && cat test/fixtures/vmlinux.bin | bzip2 > test/fixtures/vmlinux.bin.bz2","long-test":"tape test/extra/long.js","download-test":"beefy test/browser/long.js --open -- -t brfs","test":"tape test/*.js"},"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de"},"repository":{"url":"git+https://github.com/regular/unbzip2-stream.git","type":"git"},"bugs":{"url":"https://github.com/regular/unbzip2-stream/issues"},"files":["index.js","lib","dist/unbzip2-stream.min.js"],"main":"index.js","devDependencies":{"beefy":"^2.1.2","brfs":"^1.2.0","browserify":"^8.1.0","concat-stream":"^1.4.7","tape":"^3.4.0","tape-run2":"^1.0.3","throughout":"0.0.0","uglify-js":"^3.0.10"},"dependencies":{},"license":"MIT","gitHead":"f1f233b412bae9c58fcdc853bd9a2e2727c80ee7","homepage":"https://github.com/regular/unbzip2-stream#readme","_id":"@commaai/unbzip2-stream@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"commabot","email":"andy+commabot@comma.ai"},"dist":{"integrity":"sha512-Dqzzmos7r2OsvpJ9YtID1n50GpVwB4dw7ft41XJZM2V7bJ0L68ygeK4WktaT1ZslgWz5NzqHEn0t9nWFuopixg==","shasum":"93821dc5e72f04ec5eedef5ed4e6ff57412019e0","tarball":"https://registry.npmjs.org/@commaai/unbzip2-stream/-/unbzip2-stream-2.0.0.tgz","fileCount":6,"unpackedSize":18921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6JXKCRA9TVsSAnZWagAAxgIP/iI4yqS3RT7c5Olgoguq\nTArSmQnzFVXyP607bknUHhZ0GKdR8kMjYHdHE7yDAoJwbhIYEVZQzZkkDGlm\n/Kc42Ic0KQ43dtOLO0s2/ySZGZ4lSQjOYaG+g7N+cT+3vSGYgtcWaUeOkuQH\nqNO9YtjRy06ypN3Zry9f9h6eC50unkJuVeJvY4s244WwtW+xdR/keHEpHJk7\naoKZp6Qy/tupoe+NvIgcDZEUxfXXBBS+dWejwMG7zHlhEYQezH/rNbnnq8eX\nFxI4uRuvNm0u6jMeT+nT1A53w+5DwYDs0lRrBvB5tzpP3eDHsHFZtovzwhkz\n9C9bsV/YxIE+UwYb7KVhB6mXr1gutM6NkinD/r50l9ogrZlPduAXh4dLSj56\njDBmM9P9RKbYyAfzXvSjLGMaqAkE9bpskSgD+utQY1kLOhjmVtGVEX6YSUeP\nIBb1yAgp5c0zgUMYwJ0RvtazbdtamPf+bd/1XxmJ8n6NR6E62gHYpxlnjWwv\nbZ3KL4LwdFldxI4D3DQYPPB+886lTK/AjZmajB6M1cvmdVmAwP1F90tSY7/N\ntOIwz0+vosBdsMuyCLbrNlERtsg7jeshXRkhHEDYBN3K+jSXpImIWAlumBaD\nqx6xemt2Nz8NVQSfBXWjQg3ia3fjUJi/5y7zihdTcnvIPv53svqbLytKt2cE\nJOuu\r\n=7AS1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFDSejEVXRYci/LV/4UOArWoYJdgS+TESa9EtYB+9DGdAiEAzQbK4ypEyjfhpixQKHLhBO89NPt26FRhOlP+AA1uyFs="}]},"maintainers":[{"name":"commabot","email":"andy+commabot@comma.ai"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unbzip2-stream_2.0.0_1525192136972_0.4387330419325215"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-01T16:28:56.919Z","2.0.0":"2018-05-01T16:28:57.051Z","modified":"2022-04-05T00:24:38.295Z"},"maintainers":[{"name":"commabot","email":"andy+commabot@comma.ai"}],"description":"streaming unbzip2 implementation in pure javascript for node and browsers","homepage":"https://github.com/regular/unbzip2-stream#readme","keywords":["bzip","bzip2","bz2","stream","streaming","decompress","through"],"repository":{"url":"git+https://github.com/regular/unbzip2-stream.git","type":"git"},"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de"},"bugs":{"url":"https://github.com/regular/unbzip2-stream/issues"},"license":"MIT","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\nThis is [resin-io-modules's fork](https://github.com/resin-io-modules/unbzip2-stream) of the [original unbzip2-stream](https://github.com/regular/unbzip2-stream) which added in normal streams. This solved a lot of issues with flushing.\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\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"}