Socket
Socket
Sign inDemoInstall

brotli-compress-wasm

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    brotli-compress-wasm

The smallest brotli compression module for the edge


Version published
Weekly downloads
1
Maintainers
1
Install size
628 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 19 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc