このスクリプトはAvaya PBXのベクター(vector)をMermaid記法に変換することで、最終的にフロー図(flowchart)を作成することを目的としたスクリプトです。
Mermaid記法に変換した後はMermaid-cliやMermaid Live Editorでpngやsvg形式にすることができます。
This script is intended to create flowcharts by converting Avaya vectors to Mermaid notation.
After converting to Mermaid notation, you can use Mermaid-cli or Mermaid Live Editor to convert to png or svg format.
Node.jsのv18.17.0で動作を確認しています。
I have tested on v18.17.0 of Node.js.
Avaya vectorを添付のtest.vecのような形式で保存します。
その後、下記のコマンドのように第2引数に保存した.vecファイルを指定して実行します。
Save the Avaya vector in a format like the attached test.vec.
Then, execute the command as shown below, specifying the saved .vec file as the second argument.
node vector2mermaid.js 保存したファイルパスファイル名.vec
ファイル化する場合にはリダイレクトをしてください。
Please redirect if you want to file.
node vector2mermaid.js 保存したファイルパスファイル名.vec > hoge.mmd
-s ステップ番号を表示します/Show step number
添付のtest.vecをpngに変換した例です。
This is an example of converting the attached test.vec to png.

test.vecはAvayaサイトを参照して作成しました。
The test.vec was created based on the contents of the Avaya site.
バグ報告やプルリクエストはお気軽に。バグ発見時は上部のissueを起票お願いします。
Please feel free to report bugs and pull requests. If you find a bug, please submit an issue at the top of the page.