code: function obtainConfig(file) {
    let json;
    try {
      const jsonFile = fs.readFileSync(file);
      json = JSON.parse(jsonFile);
    } catch (err) {
      throw Error(`fail to load/parse your '${file}': ${err.message}`);
    }
    return json;
  }
docs: get raw config object from json
  @param file
  @returns {object}