function tryReadConfigFile()

in config.js [36:44]


function tryReadConfigFile() {
  if (process.env.DCM2BQ_CONFIG_FILE) {
    try {
      const defaultsClone = deepClone(DEFAULTS);
      const config = Object.assign(defaultsClone, JSON.parse(fs.readFileSync(process.env.DCM2BQ_CONFIG_FILE)), { src: "ENV_VAR_FILE" });
      return config;
    } catch {}
  }
}