defenv
v0.0.2
Published
CLI utility to make sure an environment variable is defined
Downloads
7
Readme
defenv
Simple command line interface for ensuring environment variables are defined.
This is meant to be used with npm scripts when environment variables are required for scripts.
Usage
$ defenv [ENVIRONMENT_VARIABLE]Examples
When the given environment variable is properly defined, the script outputs nothing.
$ defenv PATH
$But when you've given the script a missing environment variable, an error is issued and the process exits with an error.
$ defenv AWS_SECRET_KEY
**AWS_SECRET_KEY** is not defined