scan
Find node_modules directories under a path. Read-only — no sizes, no deletion.
bash
nodehunter scan
nodehunter scan ~/work
nodehunter scan -p ~/work -D 4
nodehunter scan ~/work --json --silentWhat you get
- Paths to each matched
node_modulesdirectory - Walker counters (matched, ignored, symlinks skipped) in human or JSON output
- No byte totals — use
sizefor disk measurement
Options
Inherits discovery flags and global flags.
| Flag | Description |
|---|---|
--top <n> | Cap listed rows (default 9) |
--full | Show every match |
Examples
bash
# Shallow audit of a monorepo
nodehunter scan ~/company -D 3
# Skip vendor trees
nodehunter scan ~/proj -i vendor -i .turbo
# Script-friendly output
nodehunter scan ./repos --jsonNext steps
- size — add physical disk totals
- Workflows — audit recipes
- JSON output —
reportshape forscan