Skip to main content
Module

x/brotli/mod.ts>decompress

🗜 Brotli wasm module for deno
Go to Latest
function decompress
import { decompress } from "https://deno.land/x/brotli@v0.1.4/mod.ts";

Decompress a byte array.

import { decompress } from "https://deno.land/x/brotli/mod.ts";
const compressed = Uint8Array.from([ 27, 63, 0, 0, 36, 176, 226, 153, 64, 18 ]);
console.log(compressed.length);             // 10 Bytes
console.log(decompress(compressed).length); // 64 Bytes

Parameters

input: Uint8Array

Input data.

optional
bufferSize: number = [UNSUPPORTED]

Read buffer size

Returns

Uint8Array