Render Wardley Maps from DSL text to SVG on the command line.
cli-owm examples/lair-canteen.owm -o lair-canteen.svg
cat map.owm | cli-owm > map.svg
npm install
npm run build
The compiled CLI is at dist/cli.js. Link it globally with npm link if desired.
cli-owm [options] [input-file]
Options:
-o, --output <file> Output SVG file (default: stdout)
-s, --style <name> Theme: plain, wardley, handwritten, dark, colour
-w, --width <n> Map width in pixels (default: 500)
-H, --height <n> Map height in pixels (default: 600)
--help Show help
--version Show version
If no input file is given, reads from stdin.
- Parses the same DSL used by OnlineWardleyMaps
- Five built-in themes: plain, wardley, handwritten, dark, colour
- Reads from files or stdin, writes to files or stdout
- No browser required -- pure Node.js
- Library API:
parse()andrender()for programmatic use
See the examples gallery for
rendered SVG output from the DSL files in examples/.
The DSL parser is vendored from the
onlinewardleymaps project
(MIT license, Copyright 2019 Damon Skelhorn). The only runtime dependency
is lodash.merge.
MIT