Methods

(inner) envReplace(obj) → {json}

The envReplace method finds occurances of ${...} in a stringified object and substitutes the template variables with values from matched process.env variables.

The template variable ${RESOURCE} will be substituted with the process.env.SRC_RESOURCE value.

Template variables not defined in the process.env will not be replaced.

Parameters:
NameTypeDescription
objObeckt
Returns:

safeObject

Type: 
json