dotenv-diff

npm version npm downloads

Scan your entire codebase to detect every environment variable reference and compares it against your .env files. This makes it easy to spot unused, missing, and duplicate variables, and even keep your codebase safe from accidental commits of secrets.

Optimized for SvelteKit. Also works well in modern JavaScript/TypeScript projects and frameworks like Node.js, Next.js, Nuxt, and Vue — or any other setup where you want reliable .env file comparison.