UNPKG

check-my-env

Version:

Scans your code for used process.env variables and checks if they're defined in your .env

20 lines (13 loc) β€’ 462 B
# env-check 🚨 Automatically checks if all environment variables used in your code (`process.env.XYZ`) are actually defined in your `.env` file. ## πŸ’‘ Why? Ever had `process.env.XYZ` crash your app because it was never set in `.env`? `env-check` scans your codebase and catches those before it’s too late. ## πŸ“¦ Install ```bash npm install env-check ``` ## Usage ```js // In your app's entry point (index.js or server.js) require('env-check'); ```