I've built a tool that does exactly that - qnm
node_modules
directory.Install it using:
npm i --global qnm
and run:
qnm [module]
for example:
> qnm lodash
lodash
+-- 4.17.5
+-- cli-table2
¦ +-- 3.10.1
+-- karma
+-- 3.10.1
Which means we have lodash
installed in the root of the node_modules
and two other copies in the node_modules
of cli-table2
and karma
.
It's really fast, and has some nice features like tab completion and match search.