Identifies why a package has been installed.
Difference to yarn why
- Full requiring path (
yarn whyonly list direct dependents). - Read from
yarn.locklocally (no network request), blazing fast. - Simpler output, consistent with
npm-why.
npm install -g yarn-whyUsage
$ yarn-why <package>
Examples
$ yarn-why chalk- npm-why - Identifies why a package has been installed (by
package-lock.json). - nls - Missing inspector for npm packages.
MIT @ Amio