CLI Tool

depmap

Interactive ASCII dependency graph viewer for Node.js projects

depmap demo
$ depmap ./package-lock.json
 
react@18.2.0
├── loose-envify@1.4.0
│ └── js-tokens@4.0.0
└── scheduler@0.23.0
└── loose-envify@1.4.0 (deduped)
 
# Navigate with arrow keys · / to search · ? for help

Install

$ npm install -g depmap

Usage

$ depmap [path-to-lockfile] [--depth N] [--json]
🌳
Tree View
Navigate your dependency tree interactively in the terminal
🔍
Search
Fuzzy search across all packages instantly
🔄
Cycle Detection
Automatically detects and highlights circular dependencies
📊
JSON Output
Export the full graph as JSON for further processing