Skip to content

Bzip2 decompression compiled to WebAssembly

License

Notifications You must be signed in to change notification settings

Lichtblick-Suite/wasm-bz2

 
 

Repository files navigation

@lichtblick/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 "@lichtblick/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);
}

About

Bzip2 decompression compiled to WebAssembly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 33.4%
  • TypeScript 31.4%
  • C++ 24.5%
  • JavaScript 10.7%