PlantUML encoder for browsers and Node.js.
Encoded PlantUML can be used to create PlantUML URL links.
Node.js:
npm install plantuml-encoder
browser:
bower install plantuml-encoder
var plantumlEncoder = require('plantuml-encoder')
var encoded = plantumlEncoder.encode('A -> B: Hello')
console.log(encoded) // UDfpLD2rKt2oKl18pSd91m0KGWDz
var url = 'http://www.plantuml.com/plantuml/img/' encoded
The URL can then be used to display the diagram:
var plantumlEncoder = require('plantuml-encoder')
var plain = plantumlEncoder.decode('UDfpLD2rKt2oKl18pSd91m0KGWDz')
console.log(plain) // A -> B: Hello
MIT