code: function writeJSONConfigFile(config, filePath) {
      debug(`Writing JSON config file: ${filePath}`);
  
      const content = stringify(config, { cmp: sortByKey, space: 4 });
  
      fs.writeFileSync(filePath, content, "utf8");
  }
docs: Writes a configuration file in JSON format.
  @param {Object} config The configuration object to write.
  @param {string} filePath The filename to write to.
  @returns {void}
  @private