onoff-shutdown/init.es6
// Synchronous version of fs.access with a silent error (for if loops!):
Synchronous version of fs.access with a silent error (for if loops!).
Synchronous version of fs . access with a silent error ( for if loops! ) .
function existSync(filename) {
  let status = true;
  try {
    fs.accessSync(filename, fs.F_OK);
  } catch (e) {
    status = false;
  }
  return status;
}
function existSync ( filename ) { let status = true ; try { fs . accessSync ( filename , fs . F_OK ) ; } catch ( e ) { status = false ; } return status ; }
Synchronous version of fs.access with a silent error (for if loops!
Synchronous version of fs . access with a silent error ( for if loops!