index.js
function env(root, env, escaping) {
  walk(root, function visit(props) {
    return (props.value instanceof String) || typeof props.value === 'string';
  }, function transform(props) {
    props.parent[props.name] = replace(props.value, env, escaping);
  })
}
function env(root, env, escaping) {
  walk(root, function visit(props) {
    return (props.value instanceof String) || typeof props.value === 'string';
  }, function transform(props) {
    props.parent[props.name] = replace(props.value, env, escaping);
  })
}
function env ( root , env , escaping ) { walk ( root , function visit ( props ) { return ( props . value instanceof String ) || typeof props . value === 'string' ; } , function transform ( props ) { props . parent [ props . name ] = replace ( props . value , env , escaping ) ; } ) }
Performs recursive substitution of environment variables within
complex objects.

@param root The root object.
@param env An object containing environment variables
default is process.env.
@param escaping Whether escaped dollars indicate replacement
should be ignored.
Performs recursive substitution of environment variables within complex objects .