import { deflate } from "https://deno.land/x/denoflate@1.1/mod.ts"; import { encode64 } from "./encoder.ts"; import { textToBuffer } from "./converter.ts"; const res = await fetch(Deno.args[0]); const text = await res.text(); console.log(`http://www.plantuml.com/plantuml/svg/${encode64(deflate(textToBuffer(text), 9))}`);