HySnappy
![dependencies](https://img.shields.io/badge/Dependencies-0-blueviolet)
Snappy decompression with WebAssembly.
A fast, minimal snappy decompression implementation built for WASM.
Usage
import { snappyUncompress } from 'hysnappy'
const compressed = new Uint8Array([
0x0a, 0x24, 0x68, 0x79, 0x70, 0x65, 0x72, 0x70, 0x61, 0x72, 0x61, 0x6d
])
const output = new Uint8Array(10)
await snappyUncompress(compressed, output)
Development
Run make
to build from source.
Compiles from snappy.c
to hysnappy.wasm
using clang
.
Then encodes hysnappy.wasm
as base64 to hysnappy.wasm.base64
, and inserts the base64 string into hysnappy.js
for distribution.
References