plantuml-encoder
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/plantuml-encoder package

1.4.0 • Public • Published

plantuml-encoder

PlantUML encoder for browsers and Node.js.

npm Version build-status js-standard-style

Encoded PlantUML can be used to create PlantUML URL links.

Install

Node.js:

npm install plantuml-encoder

browser:

bower install plantuml-encoder

Example

var plantumlEncoder = require('plantuml-encoder')
 
var encoded = plantumlEncoder.encode('A -> B: Hello')
console.log(encoded) // SrJGjLDmibBmICt9oGS0
 
var url = 'http://www.plantuml.com/plantuml/img/' + encoded

The URL can then be used to display the diagram:

alt tag

Decode example

var plantumlEncoder = require('plantuml-encoder')
 
var plain = plantumlEncoder.decode('SrJGjLDmibBmICt9oGS0')
console.log(plain) // A -> B: Hello
 

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i plantuml-encoder

Weekly Downloads

35,027

Version

1.4.0

License

MIT

Unpacked Size

299 kB

Total Files

17

Last publish

Collaborators

  • markushedvall