Install with `npm install -g env-not-found`
npm install env-not-foundInstall with npm install -g env-not-found
It searches all occurrences of "process.env.[value]" in your current dir ('.js', '.ts', '.jsx', '.tsx') and verifies if value is in the .env file.
``
$ env-not-found --help
Usage: env-not-found [options]
Verify if you have specified all environment variables in your env file
Options:
-d, --project-root
-e, --env-file
-b, --blacklist
-h, --help display help for command
`
If there are missing environment variables, the terminal output will be:
```
Warning: "COMMENT_WEBSOCKET_PORT" is not specified in the .env file
The program will then exit with a code of 1.
If all environment variables are present, nothing will be printed and the program will continue.
---