code: function writeYAMLConfigFile(config, filePath) {
      debug(`Writing YAML config file: ${filePath}`);
  
      // lazy load YAML to improve performance when not used
      const yaml = require("js-yaml");
  
      const content = yaml.safeDump(config, { sortKeys: true });
  
      fs.writeFileSync(filePath, content, "utf8");
  }
docs: Writes a configuration file in YAML format.
  @param {Object} config The configuration object to write.
  @param {string} filePath The filename to write to.
  @returns {void}
  @private