1.0.3 • Published 3 years ago

@bsorrentino/zx-plantuml-cli v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

zx-plantuml-cli

ZX scripts providing utilities for PlantUML

Getting Started

Install PlantuML on MacOS using homebrew

brew install plantuml

Install PlantuML on Windows using chocolatey

choco install plantuml

Install package

npm install @bsorrentino/zx-plantuml-cli -g

Commands

png2puml

To encode a sprite at gray level 16 from an PNG image

behind the scene it run command

plantuml -encodesprite 16 $1.png > $1.puml

that is equivalent at

java -jar plantuml.jar -encodesprite 16 $1.png > $1.puml

Usage

npx png2puml [--image <image path>] [--out <out dir>]

Such command interactively ask for : 1. Image Path (if not provided on command line).

Reference