lib/index.js
function readJSON (filePath) {
  let json = fs.readFileSync(filePath, "utf8");

  try {
    return JSON.parse(json);
  }
  catch (e) {
    throw ono(e, `Error parsing ${filePath}`);
  }
}
function readJSON (filePath) {
  let json = fs.readFileSync(filePath, "utf8");

  try {
    return JSON.parse(json);
  }
  catch (e) {
    throw ono(e, `Error parsing ${filePath}`);
  }
}
function readJSON ( filePath ) { let json = fs . readFileSync ( filePath , "utf8" ) ; try { return JSON . parse ( json ) ; } catch ( e ) { throw ono ( e , ` ${ filePath } ` ) ; } }
Reads and parses a JSON file

@param {string} filePath
@returns {object}
Reads and parses a JSON file