plantuml-coder
v0.0.2
Published
PlantUML encoder for both browsers and Node. This is a fork of package plantuml-encoder.
Downloads
85
Maintainers
Readme
PlantUML Coder
This is the package that allows you make transforming between your plantuml code and encoded text.
This package is ESM only with TypeScript declarations, and compatible with Node.js and Browser environment.
It's a forked project of PlantUML Encoder. For origin project is lack of maintenance and does not support TypeScript.
Usage
Install this package first.
npm i plantuml-coderIn your code,
import PlantUmlCoder from 'plantuml-coder';
const puml = 'A -> B: Hello World';
const encoded = PlantUmlCoder.encode(puml);
console.log(encoded);
const decoded = PlantUmlCoder.decode(encoded);
console.log(decoded);Then it will generate encoded content like
SrJGjLDmibBmICt9oLS8po_AIG40Then you can view the image in URL
www.plantuml.com/plantuml/png/SrJGjLDmibBmICt9oLS8po_AIG40It looks like:
Reference
License
MIT © 但为君故
