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

x/compress/zlib/deflate.ts>Deflate#push

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

Pushes data to be compressed.

Parameters

data: Uint8Array
  • The data to compress.
mode: boolean | number
  • The compression mode.

Returns

Uint8Array

The compressed data as a Uint8Array.