index.js
/**
 * loadFile
 * read and parses a yml files content (nice side effect: JSON is valid yaml syntax)
 *
 * @arg { string } filePath
 * @return { Object } config file contents
 */
loadFile
read and parses a yml files content (nice side effect: JSON is valid yaml syntax)

@arg { string } filePath
@return { Object } config file contents
loadFile read and parses a yml files content ( nice side effect : JSON is valid yaml syntax ) @arg { string } filePath @return { Object } config file contents
function loadFile (filePath) {
    try {
        var data = fs.readFileSync(filePath, 'utf8');
        return YML.safeLoad(data);
    }
    catch (err) {
        throw new Error(
            'apprc could not parse file "' + filePath + '":' + err.message
        );
    }
}
function loadFile ( filePath ) { try { var data = fs . readFileSync ( filePath , 'utf8' ) ; return YML . safeLoad ( data ) ; } catch ( err ) { throw new Error ( 'apprc could not parse file "' + filePath + '":' + err . message ) ; } }
loadFile
 read and parses a yml files content (nice side effect: JSON is valid yaml syntax)
loadFile read and parses a yml files content ( nice side effect : JSON is valid yaml syntax )