
Sadrazam: A Dependency Hygiene CLI for JavaScript and TypeScript
JavaScript and TypeScript projects get messy in a very predictable way. A package gets added for a short experiment. A build tool changes. A migration leaves old dependencies behind. A file stops being imported. An export survives three refactors for no good reason. A few months later, the project still works, but package.json and parts of the codebase no longer reflect reality. That is why I built Sadrazam : a dependency and code-hygiene CLI for JavaScript and TypeScript projects. Its goal is simple: tell me what is actually used, what is not, and do it conservatively. The problem with dependency cleanup tools A lot of tooling in this space is useful, but the tradeoff is often the same: once a tool gets too aggressive, trust drops. For me, dependency hygiene tooling needs a few things: deterministic analysis over aggressive guessing low false positives clear CLI and reporter contracts safe and narrow auto-fix behavior I did not want a tool that “feels smart” but quietly makes risky ed
Continue reading on Dev.to JavaScript
Opens in a new tab



