brotli-compress-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

brotli-compress-wasm

The smallest brotli compression module for the edge.

  • pure clang is used instead of emcc
  • own libc with walloc for memory management

Usage

Note: Only synchronous processing in a single thread and in a single iteration is supported

import * as brotli from 'brotli-compress-wasm';

// size of compressed buffer
const size = brotli.compress(buffer);

// ...to take output as Uint8Array
const result = brotli.output(size);

Installation

Recommend to use yarn for dependency management:

yarn add brotli-compress-wasm

License

brotli-compress-wasm is MIT licensed.

/brotli-compress-wasm/

    Package Sidebar

    Install

    npm i brotli-compress-wasm

    Weekly Downloads

    2

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    643 kB

    Total Files

    6

    Last publish

    Collaborators

    • eolme