lib/middleware/jng.utils.js
function doesFileExist(filePath) {
    if (!fileExistsCache.hasOwnProperty(filePath)) {
        fileExistsCache[filePath] = fs.existsSync(filePath);
    }

    return fileExistsCache[filePath];
}
function doesFileExist(filePath) {
    if (!fileExistsCache.hasOwnProperty(filePath)) {
        fileExistsCache[filePath] = fs.existsSync(filePath);
    }

    return fileExistsCache[filePath];
}
function doesFileExist ( filePath ) { if ( ! fileExistsCache . hasOwnProperty ( filePath ) ) { fileExistsCache [ filePath ] = fs . existsSync ( filePath ) ; } return fileExistsCache [ filePath ] ; }
Check to see if a particular file exists; cache results
@param filePath
@returns {*}
Check to see if a particular file exists ; cache results