getString(
variableName):string
Defined in: src/config-manager/getters.ts:119
Retrieves and validates a string environment variable.
Parameters
variableName
string
The name of the environment variable to retrieve
Returns
string
The validated string value from the environment variable
Throws
When the environment variable is missing, empty, or doesn't meet validation criteria (1-1000 characters)
Example
// Environment: API_URL=https://api.example.com
const apiUrl = getString('API_URL');
// Returns: "https://api.example.com"