How to use dotenv-expand

Comprehensive dotenv-expand code examples:

How to use dotenv-expand.expand:

30
31
32
33
34
35
36
37
38
39
    path: path.resolve(
      wd || process.cwd(),
      runMode === 'prod' ? 'prod.env' : 'dev.env'
    ),
  });
  dotenvExpand.expand(env); // expand env variables which reference env variable
};

const runCommand = async (cmd, parameters = [], options = {}) => {
  let spinner;