ECMAScript compliant lightweight zlib implementation
npm i zlib.es
import { deflate } from 'zlib.es';
const compressedData = deflate(rawData); // Input type is Uint8Array
import { inflate } from 'zlib.es';
const rawData = inflate(compressedData);