index.js
function readYAML(filepath){
	var buffer = {};
	try{
		buffer = YAML.safeLoad(fs.readFileSync(filepath, { schema:YAML.DEFAULT_FULL_SCHEMA }));
	}catch(error){
		console.error(error);
	}
	return buffer;
}
function readYAML(filepath){
	var buffer = {};
	try{
		buffer = YAML.safeLoad(fs.readFileSync(filepath, { schema:YAML.DEFAULT_FULL_SCHEMA }));
	}catch(error){
		console.error(error);
	}
	return buffer;
}
function readYAML ( filepath ) { var buffer = { } ; try { buffer = YAML . safeLoad ( fs . readFileSync ( filepath , { schema : YAML . DEFAULT_FULL_SCHEMA } ) ) ; } catch ( error ) { console . error ( error ) ; } return buffer ; }
Synchronous version of `fs.readFile`. Returns the contents of the file and parse to YAML. @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 YAML .