Returns the value associated with the key
, checking first for values provided by the Config.put method and then from process.env
.
If the value is not found, the defaultValue
is returned, or an empty string if that is not provided.
The configuration key.
The value to be returned if one is not found in the internal cache or environment variables.
Returns the value associated with the key
, checking first for values provided by the Config.put method and then from process.env
.
Unlike the Config.get method, an error is thrown if the value is not found, using the message specified if provided.
The configuration key.
The error message to be used if there is no value for the key.
This will set the provided configuration key
to the specified value
. This does not make any changes to process.env
,
the key/value pair is stored in memory only.
The configuration key.
The configuration value.
The previous configuration value if one existed.
Generated using TypeDoc
A singleton to provide easy access to mutable configuration values.