views:

55

answers:

1

I want to visualize the code dependencies in my Javascript projects - is there a package out there that will do this?

+2  A: 

While I don't know of anything that does this off the shelf, I wrote something like this for our code base.

Basically I wrote some java code that analysed the js files, read out the dependencies (all our dependencies were dynamically loaded from a function call that was easy to recognise with a regex), built a graph, then wrote out the graph in an xml file in format that yEd supports.

This allowed me to create fairly nice looking diagrams relatively easily.

Adam