lib/config/config-file.js
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");
}
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");
}
function writeYAMLConfigFile ( config , filePath ) { debug ( ` ${ 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" ) ; }
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
Writes a configuration file in YAML format .