Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ptrumpis/zstd.js

ZStandard Compression in the web browser with JS and WebAssembly.
https://github.com/ptrumpis/zstd.js

compress decompress emcc emscripten emscripten-port javascript-library js-library jslib jslibrary web-assembly webassembly zstandard zstd zstd-lib zstd-zstandard-compress-decompress

Last synced: 11 days ago
JSON representation

ZStandard Compression in the web browser with JS and WebAssembly.

Awesome Lists containing this project

README

        

# Zstd.js
Small Web Browser compatible zstd library with WebAssembly in a single file.

- Pre-build
- No Node.js
- No Webpack
- No Bullshit

Perfect for CDN Usage.

## Installation
Use this repo as public CDN
```
https://cdn.jsdelivr.net/gh/ptrumpis/zstd.js/dist/zstd.js
```

Or copy and include the file *dist/zstd.js* in your web project.

See also: [example.html](./example.html)

## Usage
```javascript
const zstd = await ZSTD();

zstd.compress(, )
zstd.decompress()
zstd.compressString(, )
zstd.decompressString()
```

## Build
```
$ git clone --recurse-submodules https://github.com/ptrumpis/zstd.js.git
$ cd zstd.js
$ make
```