Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/compress/gzip/gzip.ts>gzip

compress and uncompress for Deno
Latest
function gzip
import { gzip } from "https://deno.land/x/compress@v0.5.2/gzip/gzip.ts";

Examples

const compressed = gzip(data); const decompressed = gunzip(compressed);

Parameters

bytes: Uint8Array
optional
options: Options = [UNSUPPORTED]

Returns

Uint8Array