I built a CLI tool that auto-detects missing environment variables — no schema needed
typescript
dev.to
Every Node.js developer has faced this at least once: App crashes in production. "Cannot read property of undefined." 2 hours of debugging later — someone forgot to set DATABASE_URL. I got tired of this. So I built dotenv-audit — a CLI tool that scans your actual code, finds every process.env usage, and tells you exactly what's missing. The Problem with Existing Tools dotenv → loads .env file. Doesn't validate anything. envalid → validates, but you have to write a schema manuall