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