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

x/compress/deflate/deflate_raw.ts>deflateRaw

compress and uncompress for Deno
Latest
function deflateRaw
import { deflateRaw } from "https://deno.land/x/compress@v0.5.0/deflate/deflate_raw.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.