Skip to main content
Module

x/denoflate/deno/mods/mod.ts

WebAssembly port of Rust's flate2, a Rust implementation of Deflate, Gzip, and Zlib compressions
Go to Latest
File
export * from "../../wasm/pkg/foras.js";
import * as Base64 from "https://deno.land/std@0.158.0/encoding/base64.ts";
import init, { InitOutput, initSync } from "../../wasm/pkg/foras.js";import { wasm } from "../../wasm/pkg/foras.wasm.js";
let output: InitOutput | undefined = undefined
export async function initSyncBundledOnce() { return output ??= initSync(Base64.decode(wasm))}
export async function initBundledOnce() { return output ??= (init as any)(Base64.decode(wasm))}