lib/file/access/index.js
function executable(file) {
  try {
    fs.accessSync(file, fs.X_OK);
    return true;
  } catch (e) {
    return false;
  }
}
function executable(file) {
  try {
    fs.accessSync(file, fs.X_OK);
    return true;
  } catch (e) {
    return false;
  }
}
function executable ( file ) { try { fs . accessSync ( file , fs . X_OK ) ; return true ; } catch ( e ) { return false ; } }
Check whether a file is executable or not
@function $file~executable
@param {string} file
@returns {boolean}
@example
// Check if '/bin/ls' is executable by the current user
$file.executable('/bin/ls');
// => true
Check whether a file is executable or not