Function: name()
name(
input,options?):string
The PRIMARY (fully-scoped) name for input - what to print in a log line or an
error, so the message names the variable a reader should set. Do not index
keys(...)[0] for this if input may be a bare string.
Parameters
Section titled “Parameters”ConfigKey
options?
Section titled “options?”Pick<ConfigOptions, "scope" | "prefix"> = {}
Returns
Section titled “Returns”string
Example
Section titled “Example”logger.warn(`${config.name(JWT_SECRET_ENV)} is not set`);