{"id":18901057,"url":"https://github.com/regular/unbzip2-stream","last_synced_at":"2025-04-05T09:07:55.139Z","repository":{"id":26513154,"uuid":"29965893","full_name":"regular/unbzip2-stream","owner":"regular","description":"streaming unbzip2 implementatio in pure javascript for node and browsers","archived":false,"fork":false,"pushed_at":"2023-12-22T06:25:06.000Z","size":4501,"stargazers_count":29,"open_issues_count":8,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T08:07:07.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regular.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-01-28T12:10:50.000Z","updated_at":"2024-02-27T22:40:32.000Z","dependencies_parsed_at":"2024-06-18T13:33:13.466Z","dependency_job_id":"721eed8c-17db-4193-ba5d-14684bf123b2","html_url":"https://github.com/regular/unbzip2-stream","commit_stats":{"total_commits":73,"total_committers":6,"mean_commits":"12.166666666666666","dds":"0.26027397260273977","last_synced_commit":"c58c6f00a426d0bfb485bb92f7662ef4cbfb0df7"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Funbzip2-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Funbzip2-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Funbzip2-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regular%2Funbzip2-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regular","download_url":"https://codeload.github.com/regular/unbzip2-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312080,"owners_count":20918344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:54:59.751Z","updated_at":"2025-04-05T09:07:54.592Z","avatar_url":"https://github.com/regular.png","language":"JavaScript","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 \u0026lt;script\u0026gt; tag\n---\n\n```\n\u003cscript src=\"https://npm-cdn.info/unbzip2-stream/dist/unbzip2-stream.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    var myStream = window.unbzip2Stream();\n    // now pipe stuff through it (see above)\n\u003c/script\u003e\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Funbzip2-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregular%2Funbzip2-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregular%2Funbzip2-stream/lists"}