Description
Identifies packages that are imported in your code but not declared in your package.json dependencies. This helps ensure all required dependencies are properly documented.Usage
Examples
Flags
List of conditions for package.json imports resolution (e.g. node, imports, default)
Only display the count of modules
Working directory for the command
Entry point file(s) to start analysis from (default: auto-detected)
List of modules to exclude from the output
Additional files to search for binary usages. Use paths relative to cwd
Additional files to search for module imports. Use paths relative to cwd
Enable resolution of imports from monorepo workspace packages. Pass without value to follow all, or pass package names
Organize output by project file path
Organize output by npm package name
Organize output by npm package name and show count of files using it
Help for missing
Exclude type imports from the analysis
List of modules to include in the output
Path to package.json
Additional package.json fields to check for binary usages
Path to tsconfig.json
Show warnings and verbose output
Use this flag to always return zero exit code
Use Cases
Dependency Validation
Ensure all imported packages are declared in package.json to prevent runtime errors.
Monorepo Management
Use
--follow-monorepo-packages to properly resolve dependencies across workspace packages.CI/CD Validation
Add to CI pipelines to catch missing dependencies before deployment.
