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

x/compress/zlib/deflate.ts>Deflate

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

Class for handling deflate compression.

Constructors

new
Deflate(options?: DeflateOptions)

Properties

_dict_set: boolean
ended: boolean
err: STATUS
msg: string
options: DeflateOptionsRequired
strm: ZStream

Methods

push(data: Uint8Array, mode: boolean | number): Uint8Array

Pushes data to be compressed.