deno_kroki
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

deno_kroki

encode-diagram deno client/library from Kroki

usage

import { encodeKroki } from "https://deno.land/x/deno_kroki@v0.2.0/lib/encode_kroki.ts";

const diagramSource = `digraph G {
    Hello->World
}`;

const diagramtype = "graphviz";
const fotmat = "svg";
console.log(`https://kroki.io/${diagramtype}/${fotmat}/${encodeKroki(diagramSource)}`);

// https://kroki.io/graphviz/svg/eNpLyUwvSizIUHBXqOZSAAKP1JycfF278PyinBSuWgCRBQla

Readme

Keywords

none

Package Sidebar

Install

npm i deno_kroki

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

1.1 MB

Total Files

185

Last publish

Collaborators

  • arukiidou