How to find inverse npm package dependencies?

I would like to know which packages depend on express among installed sails/kraken/loopback/hapi/koa etc. Are there npm subcommands or other local ways to list all inverse dependencies on one specific npm package?

+37
source share
2 answers

Adding a package name after npm ls will only show you the tree with the specified package.

 npm ls express 
+51
source share

I specifically wanted to find out which package uses the dependency, which violates the initial installation. This may help someone try to do the same:

find./node_modules / -name package.json | xargs grep <the_package_name>

0
source share

All Articles