Behaves similar to npm-ls
but resolves dependencies by enhanced-resolve instead of reading lockfiles (as in loadVirtual) or reading node_modules
(as in loadActual). This makes it somewhat:
- universal as it doesn't make assumptions about how node_modules are organized, works for pnpm and rush.
- useful for debugging build issues in webpack/rollup/etc., as it points out the actual resolved dependencies.
Using npx:
npx real-ls lodash
npx real-ls [email protected]
Install globally:
npm install -g real-ls
real-ls lodash
real-ls --help