bzip2 for JavaScript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Gus 342be4403b
add a bin tool
4 years ago
tests bz2 4 years ago
.gitignore add a bin tool 4 years ago
.npmignore bz2 4 years ago
LICENSE bz2 4 years ago
README.md add a bin tool 4 years ago
bz2.js add a bin tool 4 years ago
index.html update for browser 4 years ago
index.js update for browser 4 years ago
package.json add a bin tool 4 years ago
test.js bz2 4 years ago

README.md

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.