← 全部工具

dotenv-diff

热度 65 更新于 开发与构建

Detects environment variable issues, usage, and potential security risks.

npmauto-collected

安装

npm
npm install -g dotenv-diff

通过 npm 安装。

dotenv-diff

Scan your codebase to detect every environment variable reference. It helps you catch missing, unused, duplicated, and misused variables early, before they cause runtime errors.

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

✨ Featured in awesome-cli-apps - A curated list of awesome CLI applications

---

---

Why dotenv-diff?

  • Ensure all required environment variables are defined before deploying
  • Catch missing or misconfigured variables early in development
  • Improve collaboration by keeping teams aligned on required variables
  • Reduce the risk of committing sensitive data
  • Scale easily for monorepos and multi-environment setups

---

How It Works

→ See Capabilities Documentation for details on what the scanner checks for and how it works.

---

Configuration (--init)

Generate a default configuration file:

dotenv-diff --init

→ See Configuration Documentation for more details.

---

Git hooks and CI/CD Integration