The values object to expand.
Expansion options.
The value object with expanded string values.
process.env.FOO = 'bar';
dotenvExpandAll({ A: '$FOO', B: 'x${FOO}y' });
// => { A: "bar", B: "xbary" }
Options:
When progressive
is true, each expanded key becomes available for
subsequent expansions in the same object (left-to-right by object key order).
Recursively expands environment variables in the values of a JSON object. Variables may be presented with optional default as
$VAR[:default]
or${VAR[:default]}
. Unknown variables will expand to an empty string.