Skip to main content
Module

x/brotli/mod.ts

πŸ—œ Brotli wasm module for deno
Go to Latest
File
// mod.ts
// Import deno plugin methodsimport { runCompress, runDecompress,} from "./plugin/index.js";
// Import types// TODO(divy-work): Define types// import { } from "./types.ts";
/** * Creates an deno-brotli instance */class Brotli { /** * executes runCompress with the str param * @param {string} str The string to be compressed */ compress(str: string) { return runCompress(str); } /** * executes runDecompress with the str param * @param {string} str The string to be decompressed */ decompress(str: string) { return runDecompress(str); }}
/** * Export the Brotli class */export default Brotli;