Skip to content

klausenbusk/zstd.js

Repository files navigation

This is mostly a POC and isn't used in production, you have been warned!

zstd in the browser, because why not? ;)

Build

$ git clone --recurse-submodules https://github.com/klausenbusk/zstd.js.git
$ cd zstd.js
$ make

Usage

const zstd = await ZSTD();

zstd.compress(<Uint8Array>, <compressionLevel>) <Uint8Array>
zstd.decompress(<Uint8Array>) <Uint8Array>
zstd.compressString(<string>, <compressionLevel>) <Uint8Array>
zstd.decompressString(<Uint8Array>) <string>

See also: example.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published