DEV Community

Om Tajne
Om Tajne

Posted on

I Built PkgDiet — A CLI to Clean Up Your npm Dependencies 🥗

Ever looked at your package.json and wondered:

Do I actually need all these dependencies?

I built PkgDiet to help answer that.

Run:

npx pkgdiet

PkgDiet checks your project for:

🗑️ Unused dependencies
⚠️ Unhealthy or unmaintained packages
📦 Heavy packages
💡 Possible alternatives

Instead of only asking "Is this dependency used?", PkgDiet tries to answer:

"Is this dependency worth keeping?"

Try it:

npx pkgdiet

⭐ GitHub: github.com/om-tajne/pkgdiet

I'd love feedback from the javascript community — what feature should I add next? 👇

Top comments (0)