import { compress } from "https://deno.land/x/lume@v2.4.1/deps/brotli.ts";
Compress a byte array.
import { compress } from "https://deno.land/x/brotli/mod.ts";
const text = new TextEncoder().encode("X".repeat(64));
console.log(text.length); // 64 Bytes
console.log(compress(text).length); // 10 Bytes
Parameters
Controls the compression-speed vs compression- density tradeoff. The higher the quality, the slower the compression.