Skip to content

inspect

Run analytic lenses over workspace package inventory. Default focus is duplicates.

bash
nodehunter inspect ~/work
nodehunter inspect ~/work --focus versions
nodehunter inspect ~/work --focus risks --json

Focus presets

--focusWhat it highlights
duplicatesSame package at multiple versions (default)
versionsVersion spread per package
largestLargest attributed package footprints
frameworksFramework-related packages
driftVersion drift patterns across projects
risksRisk-oriented inventory signals
bash
nodehunter help inspect   # current focus list from the CLI

Options

Discovery flags, global flags, --top, --full, and:

FlagDescription
--focus <mode>Analysis preset (default duplicates)

Examples

bash
# Duplicate react versions across a monorepo
nodehunter inspect ~/company --focus duplicates

# Security-oriented pass before cleanup
nodehunter inspect ~/company --focus risks --full