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

x/compress/zlib/mod.ts>deflate

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

Compresses the input data using deflate algorithm.

Parameters

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

Returns

Uint8Array

The compressed data as a Uint8Array.