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

x/compress/zlib/mod.ts>gzip

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

Compresses the input data using gzip format.

Parameters

input: Uint8Array
  • The data to compress.
optional
options: DeflateOptions = [UNSUPPORTED]
  • Options for the deflate operation.

Returns

Uint8Array

The compressed data as a Uint8Array.