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.3.6/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 converted = await deflateEncode(bin);
const restored = await deflateDecode(converted);

Parameters

data: Uint8Array

Returns

Promise<Uint8Array>