depguard_sweep
Find unused npm packages by scanning source imports and cross-referencing package.json. Detects phantom dependencies (installed but undeclared). Useful after installing multiple packages during coding.
Instructions
Find unused npm packages in the project. Scans source files for imports and cross-references with package.json. Also detects phantom deps (installed but not declared). Call this after a coding session where you installed multiple packages — some may no longer be needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to project root (must contain package.json) | |
| includeDevDependencies | No | Include devDependencies in scan (default: false) |