diagrams-as-code
v0.0.1
Published
Port of https://github.com/dmytrostriletskyi/diagrams-as-code
Downloads
6
Maintainers
Readme
diagrams-as-code
Port of https://github.com/dmytrostriletskyi/diagrams-as-code
Installation
pnpm add diagrams-as-codeUsage
import { readFileSync } from "node:fs";
import { render } from "diagrams-as-code";
const filePath = "./examples/message-collecting-gcp.yaml";
console.log(render(readFileSync(filePath, "utf8")));TODO
- [ ] embed SVG files instead of using urls (otherwise images can be blocked by Content Security Policy)
- postprocess SVG
- use package with icons, like aws-svg-icons
- [ ] don't use
raw.githubusercontent.com
