Returns the value for an environment variable or throws if it's undefined or null. Pass optional throwOnEmpty param to throw when the key exists but has an empty value.
Parameters
varName: string
The name of the environment variable to get.
throwOnEmpty: boolean = true
Throw an error if key exists (not undefined or null) but is empty.
Returns the value for an environment variable or throws if it's undefined or null. Pass optional
throwOnEmptyparam to throw when the key exists but has an empty value.