diff --git a/index.ts b/index.ts index f67b2c6..9a75729 100644 --- a/index.ts +++ b/index.ts @@ -1 +1,9 @@ -console.log("Hello via Bun!"); \ No newline at end of file +import { renderMermaidSVG } from "beautiful-mermaid"; + +const svg = renderMermaidSVG(` + graph TD + A[Start] --> B{Decision} + B -->|Yes| C[Action] + B -->|No| D[End] +`); +console.log(svg); diff --git a/test.svg b/test.svg new file mode 100644 index 0000000..345bf84 --- /dev/null +++ b/test.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + Yes + + + + No + + + + Start + + + + Decision + + + + Action + + + + End + +