bzip2 for JavaScript
Go to file
2019-07-01 11:18:28 -05:00
tests bz2 2019-06-27 14:34:15 -05:00
.gitignore add a bin tool 2019-07-01 11:18:28 -05:00
.npmignore bz2 2019-06-27 14:34:15 -05:00
bz2.js add a bin tool 2019-07-01 11:18:28 -05:00
index.html update for browser 2019-06-27 14:44:42 -05:00
index.js update for browser 2019-06-27 14:44:42 -05:00
LICENSE bz2 2019-06-27 14:34:15 -05:00
package.json add a bin tool 2019-07-01 11:18:28 -05:00
README.md add a bin tool 2019-07-01 11:18:28 -05:00
test.js bz2 2019-06-27 14:34:15 -05:00

bz2

bzip2 library for JavaScript

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.

API

decompress(data, test)

  • data: Uint8Array - The data to be decompressed.
  • test: boolean - Verify integrity of compressed data. Default: false.
  • Returns: Uint8Array

Decompresses data.