- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AConfig · v8.0.0Madge 8.0.0 (module dependency inspector) |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
Do first: npm install --save-exact madge@8.0.0.
What it does
Madge inspects module dependencies and finds circular dependencies. It supports JavaScript AMD, CommonJS, and ES6 modules. README
When to use it
Use it to inspect JavaScript module relationships or find circular dependencies. The README documents madge --circular path/src/app.js for circular dependency inspection. CLI examples
When not to use it
Not for visual graph generation without Graphviz: the README lists Graphviz as a prerequisite for visual graphs. npm-installed dependencies are excluded by default. Graphviz prerequisite and defaults
Install and check
Needs Node.js 18 or newer and npm. The package declares the Node.js requirement, MIT license, and version 8.0.0. Package manifest; npm metadata.
Install in a clean project:
npm install --save-exact madge@8.0.0
The README documents npm installation of madge; the command above pins it locally to the project. Installation
Run each check separately:
grep -q '"version": "8.0.0"' node_modules/madge/package.json
test -x node_modules/.bin/madge
Both checks should succeed silently: the first matches the installed manifest version, and the second checks the executable mapped by the package's bin entry. Version and executable metadata
Sources
By pahen (Patrik Henningsson, credited in the package manifest). Pinned repository; README and CLI documentation; Package manifest; npm registry.
Sources checked 2026-11-30.
Started from a post by @pahen, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.