Bzip2 decompression compiled to WebAssembly
This package provides a WebAssembly build of https://gitlab.com/bzip2/bzip2, the official Bzip2 library. Currently only a decompression function is provided.
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);
}
Join our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.