Package Information in NPM

From the NPM Package Manager cheat sheet ยท Security & Maintenance ยท verified Jul 2026

Package Information

Inspect and analyze packages

bash
# View package info
npm view express
npm view express version  # Latest version
npm view express versions  # All versions

# List installed packages
npm ls
npm ls --depth=0  # Top level only
npm ls express  # Find specific package

# Show package size
npm ls --prod --parseable | wc -l

# Find duplicate packages
npm dedupe --dry-run
npm find-dupes

# Package funding info
npm fund
npm fund express
๐Ÿ’ก Use npm explain to understand dependencies
๐Ÿ“Œ npm fund shows open-source funding info
โšก npm dedupe reduces duplicate packages
๐ŸŸข Essential for dependency management
๐Ÿ”— Related: npm-check, npm-check-updates
infoanalysis

More NPM tasks

Back to the full NPM Package Manager cheat sheet