
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
grunt-dependencygraph
Advanced tools
Visualize your CommonJS or AMD module dependencies in a force directed graph using D3.js.
You can read the full introduction to the project in my blog post.
The best way to show something is by example, so here I generated a dependencygraph of the offical RequireJS multipage-example

http://auchenberg.github.com/grunt-dependencygraph/example
From the same directory as your Gruntfile, run
npm install grunt-dependencygraph
Then add some configuration for the plugin like so:
grunt.initConfig({
...
dependencygraph: {
targetPath: './app/assets/javascript',
outputPath: './public/graph',
format: 'amd'
},
...
});
Then add the following line to your Gruntfile after the initConfig-section:
grunt.loadNpmTasks('grunt-dependencygraph');
Then just run grunt dependencygraph, go to your outputPath-folder, and open index.html.
Enjoy.
grunt-dependencygraph supports a few options.
targetPath Path for the target source to extract dependencies (supports absolute/relative paths)
outputPath Path for where to output the graph (supports absolute/relative paths)
format Dependency-format to parse, either 'cjs' (common-js), or 'amd' (AMD)
exclude A regular expression for excluding modules
grunt-dependencygraph is still very much in progress, so here is the todo-list:
FAQs
Visualize your CommonJS or AMD module dependencies.
We found that grunt-dependencygraph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.