WangZixian fecfac1207 TEXT 10 ماه پیش
..
dist fecfac1207 TEXT 10 ماه پیش
lib fecfac1207 TEXT 10 ماه پیش
LICENSE fecfac1207 TEXT 10 ماه پیش
README.md fecfac1207 TEXT 10 ماه پیش
browser-index.js fecfac1207 TEXT 10 ماه پیش
index.js fecfac1207 TEXT 10 ماه پیش
package.json fecfac1207 TEXT 10 ماه پیش

README.md

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