Skip to content

CLI to convert diagrams in other formats to mermaidJs syntax

License

Notifications You must be signed in to change notification settings

jgreywolf/convert2mermaid

Repository files navigation

convert2mermaid

This is a command-line interface (CLI) to convert a diagram from one of the following types of files to mermaid syntax within a mmd file

  • Visio (vsdx)

Usage

  • npm run build
  • node ./dist/index.js -i 'FilePath'
  • Optional arguments are:
    • -o OUTPUTFILENAME - output filename (defaults to input file name)
    • -f OUTPUTFILEFORMAT - file format for output file (defaults to mmd)
    • -d DIAGRAMTYPE - (only flowchart is accepted currently)

ToDo:

  • Add support for other diagram types (class diagram, sequence, etc)
  • Add support for other file types (Lucidchart, drawio, Excalidraw, PlantUML, others ...)