getStrings(...
variableNames):string[]
Defined in: src/config-manager/getters.ts:18
Retrieves and validates multiple string environment variables. Each variable is validated using the same criteria as getString.
Parameters
variableNames
...string[]
The names of the environment variables to retrieve
Returns
string[]
An array of validated string values from the environment variables
Throws
When any environment variable is missing, empty, or doesn't meet validation criteria (1-1000 characters)
Example
// Environment: API_URL=https://api.example.com, DB_HOST=localhost
const [apiUrl, dbHost] = getStrings('API_URL', 'DB_HOST');
// Returns: ["https://api.example.com", "localhost"]