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
Markdown
# 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');
```