Skip to content

find

Locate all installations of a package name across the scanned workspace.

bash
nodehunter find react
nodehunter find react ~/work
nodehunter find lodash ~/work --full --json

What you get

  • Whether the package was found (found: true | false in JSON)
  • Distinct versions in the workspace
  • Per-install paths with attributed sizeBytes
  • Aggregate totalSizeBytes across installations

Arguments

ArgumentDescription
<package>Exact package name (required)
[path]Scan root (default: current directory)

Options

Discovery flags, global flags, --top, --full.

Examples

bash
# Where is typescript installed?
nodehunter find typescript ~/company

# CI: fail if more than one major version (parse JSON)
nodehunter find react ~/company --json --silent
  • why — deeper footprint explanation
  • inspect — duplicate versions across packages
  • JSON outputworkspace block for find