sync-plantuml

0.0.4 • Public • Published

plantuml

Convert PlantUML diagram text to SVG with plantuml.jar.

Using PlantUML MIT Version 1.2023.2 plantuml.jar

Installation

$ npm install sync-plantuml

Dependencies

Requires java to be installed on the system.

Usage

import { plantuml } from 'sync-plantuml';

const svg = 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

Package Sidebar

Install

npm i sync-plantuml

Weekly Downloads

13

Version

0.0.4

License

MIT

Unpacked Size

10.9 MB

Total Files

12

Last publish

Collaborators

  • nishidemasami