getBooleans(...
variableNames):boolean[]
Defined in: src/config-manager/getters.ts:38
Retrieves and validates multiple boolean environment variables. Each variable is validated using the same criteria as getBoolean. Accepts "true" or "false" values (case-insensitive) and converts them to boolean.
Parameters
variableNames
...string[]
The names of the environment variables to retrieve
Returns
boolean[]
An array of boolean values parsed from the environment variables
Throws
When any environment variable is missing or not a valid boolean string
Example
// Environment: DEBUG=true, VERBOSE=FALSE, ENABLED=True
const [debug, verbose, enabled] = getBooleans('DEBUG', 'VERBOSE', 'ENABLED');
// Returns: [true, false, true]