bin/bootstrap.js
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;
}
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;
}
function obtainConfig ( file ) { let json ; try { const jsonFile = fs . readFileSync ( file ) ; json = JSON . parse ( jsonFile ) ; } catch ( err ) { throw Error ( ` ${ file } ${ err . message } ` ) ; } return json ; }
get raw config object from json
@param file
@returns {object}
get raw config object from json