/utils/envReplace

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:
NameTypeDescription
strstring

The string containing template variables to be replaced.

Returns:

The string with template variables replaced.

Type: 
string