Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/dep/lz4.ts>decompress

A frugal web framework
Go to Latest
function decompress
import { decompress } from "https://deno.land/x/frugal@0.3.0/dep/lz4.ts";

Decompress a byte array using lz4.

import { decompress } from "https://deno.land/x/lz4/mod.ts";
const compressed = Uint8Array.from([ 31, 88, 1, 0, 44, 0 ]);
console.log(compressed.length);             // 6 Bytes
console.log(decompress(compressed).length); // 64 Bytes

Parameters

input: Uint8Array

Input data.

Returns

Uint8Array