Works with npm, yarn & pnpm
Find why any dependency
exists in your project
Trace dependency chains, discover which files use a package, and get actionable insights to optimize your bundle.
~/my-project
Features
Everything you need to understand your dependencies
Dependency Chains
See exactly how any package ended up in your node_modules, whether direct or transitive.
File Usage Detection
Find which source files actually import and use a specific package in your codebase.
Size Impact Analysis
See how much disk space a package and all its dependencies consume with --size-map.
Actionable Suggestions
Get recommendations on whether a package can be removed or optimized.
Beautiful Output
Color-coded tree view makes it easy to understand complex dependency relationships.
CI/CD Ready
JSON output mode for easy integration with your build pipelines and automation.
Installation
Get started in seconds
npx whyinstall <package-name>