plantuml

Convert PlantUML diagram text to SVG

Usage no npm install needed!

<script type="module">
  import plantuml from 'https://cdn.skypack.dev/plantuml';
</script>

README

npm version Build Status

plantuml

Convert PlantUML diagram text to SVG.

Installation

$ npm install metalsmith-plantuml

Usage

const plantuml = require('plantuml');
const svg = await plantuml(`
  @startuml
  Bob -> Alice : hello
  Alice -> Wonderland: hello
  Wonderland -> next: hello
  next -> Last: hello
  Last -> next: hello
  next -> Wonderland : hello
  Wonderland -> Alice : hello
  Alice -> Bob: hello
  @enduml
`);

require('fs').writeFileSync('image.svg', svg);

License

MIT