Skip to main content
Module

x/simple_utility/mod.ts>deflateDecode

Useful snippet collection.
Go to Latest
function deflateDecode
import { deflateDecode } from "https://deno.land/x/simple_utility@v1.5.1/mod.ts";

Decompress "deflate" format binary. Cannot decompress such as "gzip" (RFC1952) or "zlib" (RFC1950) that contain header.

Examples

Example 1

const bin = await Deno.readFile("./file");
const encode = await deflateEncode(bin);
const decode = await deflateDecode(encode);

Parameters

data: Uint8Array

Returns

Promise<Uint8Array>