solidity2plantuml

Converts solidity code into a plantUML script, from which UML diagramms can be generated.

Usage no npm install needed!

<script type="module">
  import solidity2plantuml from 'https://cdn.skypack.dev/solidity2plantuml';
</script>

README

solidity2plantuml

Converts solidity code into a plantUML script representing UML class diagramms.

Example

Alt text

Usage

node sol2uml [/path/to/somefile.sol]

or

node sol2uml [/path/to/folder/containing/solidityfiles]

If you provide a file as an argument the converter will trace all import directives. If you provide a folder all files in the folder will be processed.

Code Embedding

Please take a look at the cli.js file if you want to embed this into yor code. You can either trace the Import Directives or the Folder Structure.