Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically extract the software architecture of a Javascript program? [closed]

Usually, when I try to know more about a program based on its sources, I try to run doxygen on it and to extract the documentation and the global architecture of it (class hierarchy, modules, packages, call-stack, ...). It does help a lot. Another way, is also to run static-analyzers on the source such as cppcheck (C/C++), clang static-analyzer (c/c++) or pmd (Java), pylint (Python) and to look at the output.

I recently had to look at a Javascript program and I was a bit disappointed because I did not find any tool to perform good static analysis on it, nor tools to extract the software architecture (I found several scripts that were trying to convert the Javascript in a language accepted by Doxygen but none were able to work properly and extract something valuable). So, I wonder if I missed something when looking for these tools. Can somebody point me interesting tools about Javascript automated analysis ? Or, at least, explain to me why it is difficult (or impossible).

Note: I'm not speaking about Google Dart, but the usual Javascript (ECMAScript).

like image 258
perror Avatar asked Mar 21 '26 14:03

perror


1 Answers

Static analysis tools for JavaScript have been discussed earlier. For architecture reconstruction tasks you might further consider JS/UML, IntelliJ IDEA, Visustin and Code Visual to Flowchart.

like image 113
Alexander Serebrenik Avatar answered Mar 24 '26 03:03

Alexander Serebrenik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!