Skip to content

Bzip2 decompression compiled to WebAssembly

License

Notifications You must be signed in to change notification settings

dash-software-ltd/wasm-bz2

 
 

Repository files navigation

@foxglove/wasm-bz2

npm version

Bzip2 decompression compiled to WebAssembly

Introduction

This package provides a WebAssembly build of https://gitlab.com/bzip2/bzip2, the official Bzip2 library. Currently only a decompression function is provided.

Usage

import Bzip2 from "@foxglove/wasm-bz2";

const bzip2 = await Bzip2.init();

try {
  const buffer = new Uint8Array([...]);
  const maxSize = 100;
  const decompressedBuffer = Bzip2.decompress(buffer, maxSize, { small: false });
} catch (error) {
  console.error(error);
}

Stay in touch

Join our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.

About

Bzip2 decompression compiled to WebAssembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 33.5%
  • TypeScript 31.3%
  • C++ 24.5%
  • JavaScript 10.7%