dotenv-diff - Validate environment variables in codebases

Show HN: Dotenv-Diff v3.0.0

4chrillemn💬 0
dotenv-diff - Validate environment variables in codebases

dotenv-diff is a powerful CLI tool that scans your codebase to detect missing, unused, duplicated, or misused environment variables before they cause runtime errors. It offers first-class support for SvelteKit, Next.js, and Nuxt, while also working seamlessly with Node.js, Vue, and other modern JavaScript/TypeScript frameworks. By integrating into Git hooks and CI/CD pipelines, it ensures teams stay aligned on required variables, reduces the risk of committing sensitive data, and scales effortlessly for monorepos. With features like expiration warnings and framework-specific checks, it helps developers catch configuration issues early in the development lifecycle.

"It helps you catch missing, unused, duplicated, and misused variables early, before they cause runtime errors."

More from this day · 2026-07-11