zlib.es

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