Explains why a package is installed by tracing through the dependency tree.
Implements the npm why / npm explain functionality.
Summary
Functions
Finds all packages that directly depend on the target.
Checks if a package is a direct dependency.
Explains why a package is in the lockfile.
Returns a human-readable explanation string.
Types
Functions
Finds all packages that directly depend on the target.
Checks if a package is a direct dependency.
Explains why a package is in the lockfile.
Returns a list of dependency paths that lead to the given package. Each path is a list of package names from root to the target.
Returns a human-readable explanation string.