Skip to content

jspaaks/npm-scripts-callgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

npm-scripts-callgraph

Python script to generate a dot format callgraph from a package.json's "script" key.

# say you have an npm package called helloworld
# (will write an output file in the current directory)
python callgraph.py ~/helloworld/package.json

You can then visualize the dot file using tools like GraphViz. On Linux (Ubuntu/Debian), install GraphViz as follows:

sudo apt-get install graphviz

then

# write output in SVG format, see dot -? for your options
dot -Tsvg helloworld.dot -o callgraph-of-helloworld.svg

About

Python script to generate a dot format callgraph from package.json's "script" key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages