Optional
The default value to return if the environment variable is not set.
undefined Copy
undefined
Optional error message to throw if the environment variable is not set and no default value is provided.
"Environment variable <key> is required" Copy
"Environment variable <key> is required"
The key of the environment variable.
The default value to return if the environment variable is not set.