index.js
function existsCached(testPath) {
	if (existsCache[testPath] == 1) {
		return true;
	}
	if (existsCache[testPath] == 0) {
		return false;
	}
	if (exists(testPath)) {
		existsCache[testPath] = 1;
		return true;
	}
	else {
		existsCache[testPath] = 0;
		return false;
	}
}
function existsCached(testPath) {
	if (existsCache[testPath] == 1) {
		return true;
	}
	if (existsCache[testPath] == 0) {
		return false;
	}
	if (exists(testPath)) {
		existsCache[testPath] = 1;
		return true;
	}
	else {
		existsCache[testPath] = 0;
		return false;
	}
}
function existsCached ( testPath ) { if ( existsCache [ testPath ] == 1 ) { return true ; } if ( existsCache [ testPath ] == 0 ) { return false ; } if ( exists ( testPath ) ) { existsCache [ testPath ] = 1 ; return true ; } else { existsCache [ testPath ] = 0 ; return false ; } }
caches the 'exists' results so we don't hit the file system everytime in production
caches the exists results so we don t hit the file system everytime in production