23

I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • For `Atlassian Confluence` there's [draw.io](https://marketplace.atlassian.com/plugins/com.mxgraph.confluence.plugins.diagramly/cloud/overview) – vsync Apr 06 '17 at 12:03

1 Answers1

13

If you are using node.js, i made a module that generate a class diagram for javascript/node/html/css. Its called wavi. For javascript, function and variable are recognized.

https://www.npmjs.org/package/wavi

Diagram generated by wavi

Bakunin95
  • 426
  • 5
  • 4
  • 1
    Is it configurable? For example I don't want variables to be visible. I didn't find any info about this. Thanks! – Serob_b Mar 01 '18 at 01:57
  • @Serob_b Did you find out whether it is configurable to hide variables? – Galen Apr 27 '20 at 15:54
  • I am finding that [wavi isn't creating diagrams of a Cordova project](https://stackoverflow.com/questions/61464056/how-to-troubleshoot-why-wavi-is-finding-synatx-errors-in-a-cordova-project-that). – Galen Apr 27 '20 at 17:11
  • @Galen Eventually I couldn't find any info on this. It seems it is not configurable. – Serob_b Apr 28 '20 at 16:43
  • @Serob_b Sorry to hear that! Thanks for letting me know. – Galen Apr 28 '20 at 16:43
  • @Galen I haven't used this for 3 years, so maybe things have changed and you can try to find out something from the other places and not rely only on my answer ;) – Serob_b Apr 28 '20 at 16:47