getBoolean(
variableName):boolean
Defined in: src/config-manager/getters.ts:149
Retrieves and validates a boolean environment variable. Accepts "true" or "false" values (case-insensitive) and converts them to boolean.
Parameters
variableName
string
The name of the environment variable to retrieve
Returns
boolean
The boolean value parsed from the environment variable
Throws
When the environment variable is missing or not a valid boolean string
Example
// Environment: DEBUG=true
const debug = getBoolean('DEBUG');
// Returns: true
// Environment: ENABLED=FALSE
const enabled = getBoolean('ENABLED');
// Returns: false