Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zprodev/zlib.es
ECMAScript compliant lightweight zlib implementation
https://github.com/zprodev/zlib.es
deflate esmodules javascript zlib
Last synced: 8 days ago
JSON representation
ECMAScript compliant lightweight zlib implementation
- Host: GitHub
- URL: https://github.com/zprodev/zlib.es
- Owner: zprodev
- License: zlib
- Created: 2018-09-10T10:32:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T20:18:15.000Z (over 3 years ago)
- Last Synced: 2024-04-23T20:54:23.914Z (8 months ago)
- Topics: deflate, esmodules, javascript, zlib
- Language: TypeScript
- Homepage:
- Size: 611 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zlib.es
[![npm](https://img.shields.io/npm/v/zlib.es.svg)](https://www.npmjs.com/package/zlib.es)
[![Build Size](https://badgen.net/bundlephobia/minzip/zlib.es)](https://bundlephobia.com/result?p=zlib.es)
[![Build Status](https://travis-ci.org/zprodev/zlib.es.svg?branch=master)](https://travis-ci.org/zprodev/zlib.es)
[![license](https://img.shields.io/github/license/zprodev/zlib.es.svg)](LICENSE)ECMAScript compliant lightweight zlib implementation
## Distribution
### npm
```
npm i zlib.es
```### files
[for browser](https://github.com/zprodev/zlib.es/tree/master/dist/browser)
[for CommonJS](https://github.com/zprodev/zlib.es/tree/master/dist/cjs)
[for ESModules](https://github.com/zprodev/zlib.es/tree/master/dist/esm)
## Usage
### compression
```
import { deflate } from 'zlib.es';const compressedData = deflate(rawData); // Input type is Uint8Array
```### decompression
```
import { inflate } from 'zlib.es';const rawData = inflate(compressedData);
```