Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexpineda/pkware-wasm
StormLib Implode and Explode algorithms for javascript thanks to emscripten
https://github.com/alexpineda/pkware-wasm
Last synced: about 2 months ago
JSON representation
StormLib Implode and Explode algorithms for javascript thanks to emscripten
- Host: GitHub
- URL: https://github.com/alexpineda/pkware-wasm
- Owner: alexpineda
- Created: 2022-01-14T01:12:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-14T01:18:22.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T01:45:47.928Z (2 months ago)
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# pkware-wasm
[StormLib](https://github.com/ladislav-zezula/StormLib) Implode and Explode algorithms for javascript thanks to emscripten# API
syncronously compress the `in` buffer with pkware implode; will use the implode auto detect if dictSize is `undefined`
```ts
implode(in: Buffer, dictSize?)
```syncronously decompress the `in` buffer with pkware explode
```ts
explode(in: Buffer)
```calculate checksum
```ts
crc32(in: Buffer, xor?: boolean)
```dictSize constants
```ts
ImplodeDictSize1
ImplodeDictSize2,
ImplodeDictSize3,
```# Development
In your (windows) emscripten environment run `build/build.bat`