Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 986 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 986 Bytes

zlib.es

npm Build Size Build Status license

ECMAScript compliant lightweight zlib implementation

Distribution

npm

npm i zlib.es

files

for browser

for CommonJS

for ESModules

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);