https://github.com/sheetjs/bz2
bzip2 for JavaScript
https://github.com/sheetjs/bz2
bzip2 compression javascript
Last synced: 4 months ago
JSON representation
bzip2 for JavaScript
- Host: GitHub
- URL: https://github.com/sheetjs/bz2
- Owner: SheetJS
- License: mit
- Created: 2019-06-25T00:00:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-31T14:19:39.000Z (about 5 years ago)
- Last Synced: 2025-04-19T08:35:02.353Z (10 months ago)
- Topics: bzip2, compression, javascript
- Language: JavaScript
- Homepage: https://oss.sheetjs.com/bz2
- Size: 4.53 MB
- Stars: 19
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bz2
bzip2 library for JavaScript
```js
import { decompress } from 'bz2';
const output = decompress(input);
```
Available from the npm registry as `bz2`
and from the GitHub registry as `@sheetjs/bz2`.
Try out the [demo](https://http://sheetjs.com/bz2/demo).
## API
### `decompress(data, test)`
* `data`: `Uint8Array` - The data to be decompressed.
* `test`: `boolean` - Verify integrity of compressed data. Default: `false`.
* **Returns**: `Uint8Array`
Decompresses `data`.