Skip to main content
Module

x/denoflate/mod.ts

WebAssembly powered Deflate/Gzip/Zlib compression for Deno, written in Rust
Very Popular
Go to Latest
File
export { deflate, inflate, gzip, gunzip, zlib, unzlib,} from "./pkg/denoflate.js";
import init from "./pkg/denoflate.js";
async function read(path: string) { const url = new URL(path, import.meta.url);
if (url.protocol === "file:") { return await Deno.readFile(url); }
return await fetch(url);}
await init(read("./pkg/denoflate_bg.wasm"));