Detects phantom (undeclared) dependencies.
A phantom dependency is one that can be required in code but is not declared in package.json — it only works because another package depends on it and it gets hoisted.
Summary
Functions
Counts phantom dependencies.
Finds packages in node_modules that aren't declared in package.json.
Formats a report of phantom dependencies.
Checks if a specific package is a phantom dependency.
Functions
@spec count(map(), map()) :: non_neg_integer()
Counts phantom dependencies.
Finds packages in node_modules that aren't declared in package.json.
Formats a report of phantom dependencies.
Checks if a specific package is a phantom dependency.