0.1.1 • Published 1 year ago

@foxglove/wasm-bz2 v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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.

0.1.1

1 year ago

0.1.0

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago