Story

Show HN: Environment variable scanner for JavaScript/TS projects

chrilleweb Thursday, January 22, 2026

Hi HN

This is the documentation site for dotenv-diff

It’s a CLI tool that scans you’re codebase for environment variable usage in you’re codebase and detects issues about them.

Example: in Next.js using a non NEXT_PUBLIC environment variable in a client file just returns undefined - no context why.

I’ve personally wasted hours debugging issues like that.

Summary
The article discusses the dotenv-diff library, which compares environment variables between development and production environments, ensuring consistency and reducing potential issues. It highlights the library's features, such as automated comparison, error reporting, and integration with popular tools like Jest and Serverless.
1 0
Summary
dotenv-diff-docs.vercel.app
Visit article Read on Hacker News