Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ptrumpis/zstd.js
- Owner: ptrumpis
- License: mit
- Fork: true (klausenbusk/zstd.js)
- Created: 2023-02-05T15:00:51.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-07T09:20:15.000Z (over 1 year ago)
- Last Synced: 2024-07-30T21:02:31.463Z (3 months ago)
- Topics: compress, decompress, emcc, emscripten, emscripten-port, javascript-library, js-library, jslib, jslibrary, web-assembly, webassembly, zstandard, zstd, zstd-lib, zstd-zstandard-compress-decompress
- Language: JavaScript
- Homepage:
- Size: 578 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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 BullshitPerfect 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
```