Skip to content

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.

ConfigKey

Pick<ConfigOptions, "scope" | "prefix"> = {}

string

logger.warn(`${config.name(JWT_SECRET_ENV)} is not set`);