JavaScript analysis using Lattix Architect
lxjs is a utility that analyzes JavaScript and generates an xml file that can be used to create a Lattix Architect project. Once a project has been created, you can generate a DSM (Dependency Structure Matrix). You can also generate a variety of metrics, try what-ifs, make it part of continuous integration and verify against rules to prevent architecture erosion.
lxjs uses madge to generate module dependencies. It takes one additional argument: 'no-xml'; if 'no-xml' is specified it works just like madge, otherwise it generates xml.
To run lxjs
npm install -g lxjs
lxjs source-directory > output.ldi.xml