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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.01
0.4.00
0.3.00
0.2.01
0.1.00

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