import { deflateEncode } from "https://deno.land/x/png_mimic@v1.0.3/deps.ts";
Compress binary with DEFLATE format.
Default codec is DEFLATE with no header (RFC-1951) and name in WebAPI specification is "deflate-raw"
.
Examples
Example 1
Example 1
const bin = await Deno.readFile("./file");
const encode = await deflateEncode(bin);
const decode = await deflateDecode(encode);