
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Env Doctor: Diagnose, validate, and audit your .env files and environment variables in seconds.
Diagnose, validate, and audit your environment variables across your entire project.
Env Doctor scans all your
.envfiles and your source code to catch missing and unused environment variables.
Recursively finds all .env files in your project
Scans source files (.js, .ts, .jsx, .tsx, .mjs, .cjs)
Detects environment usage via:
process.env.KEY / process.env["KEY"]import.meta.env.KEY$env/static/* or astro:env/* importsReports missing and unused keys
Pretty output with spinners and colors
npm install -g envdoc
Run inside any project:
envdoc diagnose
That’s it — Env Doctor will automatically:
.env filesProject structure:
my-app/
├─ src/
│ ├─ index.js
│ └─ utils.ts
├─ .env
└─ .env.local
.env file:
PORT=3000
DATABASE_URL=
DEBUG_MODE=true
src/index.js:
console.log(process.env.PORT);
console.log(process.env.DATABASE_URL);
Run:
envdoc diagnose
Output:
SUCCESS: Found 2 .env file(s).
SUCCESS: Parsed all .env files (3 unique keys found).
SUCCESS: Scan complete.
Used keys in code: [ 'PORT', 'DATABASE_URL' ]
Keys defined in .env files: [ 'PORT', 'DATABASE_URL', 'DEBUG_MODE' ]
WARNING: Missing keys in .env file(s): [ 'DATABASE_URL' ]
WARNING: Unused keys in .env file(s): [ 'DEBUG_MODE' ]
| Command | Description |
|---|---|
envdoc diagnose | Scan your project and report missing/unused env keys |
| more commands coming soon |
git checkout -b feature/my-feature)git commit -m "Add feature")git push origin feature/my-feature)MIT License © 2025 Adarsh Antony
FAQs
Env Doctor: Diagnose, validate, and audit your .env files and environment variables in seconds.
We found that envdoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.