index.js
function isExist(dir) {
  dir = path.normalize(dir);
  try {
    fs.accessSync(dir, fs.R_OK);
    return true;
  } catch (e) {
    return false;
  }
}
function isExist(dir) {
  dir = path.normalize(dir);
  try {
    fs.accessSync(dir, fs.R_OK);
    return true;
  } catch (e) {
    return false;
  }
}
function isExist ( dir ) { dir = path . normalize ( dir ) ; try { fs . accessSync ( dir , fs . R_OK ) ; return true ; } catch ( e ) { return false ; } }
check path is exist
check path is exist