Env Var Doctor
Tells you which environment variables your code needs and which you forgot.
What you're making
Nothing is more annoying than an app that crashes on boot because one environment variable is missing. This scans your code for every variable it reads, compares that to what you've actually set, and tells you exactly what's missing before you run anything. It'll also write you an example file so new people can get set up.
Scans source for environment variable access, reconciles it against the current environment and example files, and reports gaps. Static analysis rather than guessing from a template.
Hosting · Free forever
Deploys free on npm, PyPI or GitHub Releases.
Nothing to host. Publishing to a package registry is free and permanent, and anyone can run it with a single command.
Publish to npm — one command and anyone can run it.
Core features · 7
- Scans source files for environment variable reads
- Compares against what is currently set
- Reports missing variables before the app runs
- Distinguishes required from optional by checking for defaults
- Generates an example file from what it found
- Never prints actual secret values
- Exits non-zero so it can gate a deploy
The interesting part
- Finding dynamic access patterns that static scanning misses
- Telling a required variable from one with a sensible fallback
- Printing findings without ever leaking a secret to the terminal
Once it works
- Detect unused variables that can be deleted
- Validate value formats such as URLs and ports
- Support several languages, not just one