function readConfigFile(filename) {
    const abs_path = path.join(__dirname, filename);
    const json = fs.readFileSync(abs_path, {
        'encoding': 'utf8'
    });
    return JSON.parse(json);
}
/**
 * Read the configuration file in JSON format synchronously, parse the content and return the result.
 * @param {string} filename a file name relative to the script directory
 * @return {Object}  the parsed configuration file
 */
Read the configuration file in JSON format synchronously, parse the content and return the result.
@param {string} filename a file name relative to the script directory
@return {Object}  the parsed configuration file
Read the configuration file in JSON format synchronously parse the content and return the result . @param { string } filename a file name relative to the script directory @return { Object } the parsed configuration file
function readConfigFile(filename) {
    const abs_path = path.join(__dirname, filename);
    const json = fs.readFileSync(abs_path, {
        'encoding': 'utf8'
    });
    return JSON.parse(json);
}
function readConfigFile ( filename ) { const abs_path = path . join ( __dirname , filename ) ; const json = fs . readFileSync ( abs_path , { 'encoding' : 'utf8' } ) ; return JSON . parse ( json ) ; }
Read the configuration file in JSON format synchronously, parse the content and return the result.
Read the configuration file in JSON format synchronously parse the content and return the result .