从清单文件分析并可视化项目依赖树。支持 Node.js(package.json)、Python(requirements.txt、pyproject.toml)、Go(go.mod)等。
Parse and display project dependency trees from manifest files. Auto-detects project type.
bash
# Analyze current project
python3 scripts/dep_graph.py
# Analyze specific directory
python3 scripts/dep_graph.py /path/to/project
# JSON output
python3 scripts/dep_graph.py --json
# Summary only (just counts)
python3 scripts/dep_graph.py --summary
# Force project type
python3 scripts/dep_graph.py --type node
# Hide version constraints
python3 scripts/dep_graph.py --no-versions
TypeManifest FileGroupsNode.jspackage.jsonproduction, dev, peerPythonrequirements.txtproductionPythonpyproject.tomlproductionGogo.modproduction, indirectRustCargo.tomlproduction, devRubyGemfileproduction, devPHPcomposer.jsonproduction, dev
Auto-detects multiple manifest files in the same project and reports all.
Tree view shows dependencies grouped by type (production/dev/peer) with version constraints. Use --json for programmatic processing or --summary for quick counts.