Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://gitlab.com/zipcord/zipcord-decoder-pako
Decoder for Zipcord using Pako
https://github.com/nodeca/pako
Kept mostly for historical reasons, Zipcord now uses zipcord-decoder-fflate by default
https://gitlab.com/zipcord/zipcord-decoder-pako
deflate inflate pako unzip zip zipcord
Last synced: 12 days ago
JSON representation
Decoder for Zipcord using Pako https://github.com/nodeca/pako Kept mostly for historical reasons, Zipcord now uses zipcord-decoder-fflate by default
- Host: gitlab.com
- URL: https://gitlab.com/zipcord/zipcord-decoder-pako
- Owner: zipcord
- License: mit
- Created: 2020-12-28T02:01:03.965Z (almost 4 years ago)
- Default Branch: master
- Last Synced: 2024-07-30T21:09:13.990Z (3 months ago)
- Topics: deflate, inflate, pako, unzip, zip, zipcord
- Stars: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# zipcord-decoder-pako
Decoder for [Zipcord](https://gitlab.com/zipcord/zipcord) using
[Pako](https://github.com/nodeca/pako) as its backend. Includes a minimal
stripped-down version of Pako in the source to avoid bloating bundles with the
compression code included in the upstream version.This was originally the default decoder for Zipcord until it was replaced with
[zipcord-decoder-fflate](https://gitlab.com/zipcord/zipcord-decoder-fflate).
Pako provides approximately the same performance as fflate but with a
significantly larger payload. See the [benchmark
page](https://zipcord.gitlab.io/zipcord-demo/bench.html) to compare decoder
efficiency.## Usage
Install with `npm install zipcord-decoder-pako` or the equivalant for your
package manager. Use as follows:```typescript
import { Zipcord } from 'zipcord'
import { pakoDecoderSetup } from 'zipcord-decoder-pako';
const options = {
decoderSetup: pakoDecoderSetup
};
const archive = await Zipcord.open('https://example.com/archive.zip', options);
// Extract files as normal, now decompressing with Pako
```## License
zipcord-decoder-pako is copyright © David Powell and is licenced under MIT. See
LICENSE.txt for the full text of the license.[Pako](https://github.com/nodeca/pako) was written by Andrey Tupitsin & Vitaly
Puzrin and is ported from zlib written by Jean-loup Gailly & Mark Adler. A
stripped-down fork of Pako with the encoder removed is included in Zipcord's
source. `inflate.ts` is licensed under MIT and all files under `zlib` is under
the ZLIB license.