An open API service indexing awesome lists of open source software.

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

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`.