/utils/envReplace
- Source
Methods
(inner) envReplace(str) → {string}
This function replaces variables in src strings with their corresponding values from the xyzEnv object. The variables are denoted by the syntax ${VARIABLE_NAME}. If a variable is not found in xyzEnv, it will remain unchanged in the string.
Parameters:
| Name | Type | Description |
|---|---|---|
str | string | The string containing template variables to be replaced. |
- Source
Returns:
The string with template variables replaced.
- Type:
- string