pandiag

CLI tool for converting between diagram formats (draw.io, DOT, Mermaid)

GPL-3.0 License

Downloads
41
Stars
0

Pandiag

A tool for converting between different diagram formats, inspired by pandoc. Currently supports

  • draw.io (input only)
  • DOT/GraphViz (output only)
  • Mermaid (output only)

[!IMPORTANT] The tool is highly experimental and can currently only parse/represent/format a small subset of diagrams in the aforementioned formats. More formats are planned.

Examples

Converting a draw.io diagram to DOT:

pandiag somediagram.drawio -o somediagram.dot

Converting a draw.io diagram to PDF (requires GraphViz to be installed):

pandiag somediagram.drawio -o somediagram.pdf

For examples on how to use pandiag as a library, check out the examples directory.