Problem: Unused npm dependencies


Problem: Unused npm dependencies.

They make package.json harder to read, bloat node_modules, waste our time updating packages we don’t use, and create confusion about what our project requires.

Solution: npx depcheck

It lists unused dependencies.

I just found over a dozen unused packages on a client’s project.

Note that it also lists missing dependencies (packages we're referencing in code that aren't listed in package.json). Handy.

View original on X