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).
Each value is expanded by the rules of dotenvExpand. A key that
references an earlier key gets that key's expanded value verbatim, so with
{ P: '\\$5', Q: '$P' } both are $5 (#94).
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.