index.js
function readJSON(filepath){
	var buffer = {};
	try{
		buffer = JSON.parse(fs.readFileSync(filepath, { encoding:'utf8' }));
	} catch(error){}
	return buffer;
}
function readJSON(filepath){
	var buffer = {};
	try{
		buffer = JSON.parse(fs.readFileSync(filepath, { encoding:'utf8' }));
	} catch(error){}
	return buffer;
}
function readJSON ( filepath ) { var buffer = { } ; try { buffer = JSON . parse ( fs . readFileSync ( filepath , { encoding : 'utf8' } ) ) ; } catch ( error ) { } return buffer ; }
Synchronous version of `fs.readFile`. Returns the contents of the file and parse to JSON. @see https://nodejs.org/api/fs.html#fs_fs_readfilesync_file_options
Synchronous version of fs . readFile . Returns the contents of the file and parse to JSON .