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

x/compress/deflate/mod.ts>deflateRaw

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

Compresses the input data using the DEFLATE algorithm.

Parameters

bytes: Uint8Array
  • The input data as a Uint8Array to be compressed.
optional
level: number = [UNSUPPORTED]
  • The compression level (default is DEFAULT_LEVEL).

Returns

Uint8Array

A Uint8Array containing the compressed data.