Skip to content

mogeko/plantuml-encoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plantuml-encoding

Test codecov JSR

A Deno library for encoding and decoding PlantUML code.

Installation

deno add @mogeko/plantuml-encoding

For Node.js users:

npx jsr add @mogeko/plantuml-encoding

Encoding

import { encode } from "jsr:@mogeko/plantuml-encoding";

const encoded = encode("A -> B: Hello");
console.log(encoded); // SrJGjLDmibBmICt9oGS0

const url = `https://www.plantuml.com/plantuml/svg/${encoded}`;

Visit the URL and you will get this flowchart:

puml

Decoding

import { decode } from "jsr:@mogeko/plantuml-encoding";

const puml = decode("SrJGjLDmibBmICt9oGS0");
console.log(puml); // A -> B: Hello

LICENSE

The code in this project is released under the MIT License.

About

A Deno library for encoding PlantUML

Resources

License

Stars

Watchers

Forks