Skip to content

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 --silent

What you get

  • Paths to each matched node_modules directory
  • Walker counters (matched, ignored, symlinks skipped) in human or JSON output
  • No byte totals — use size for disk measurement

Options

Inherits discovery flags and global flags.

FlagDescription
--top <n>Cap listed rows (default 9)
--fullShow 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 --json

Next steps