lib/util.js
function(file) {
    var filePath = path.resolve(file);

    if (filePath && fs.existsSync(filePath)) {
      return filePath;
    }

    return false;
  }
function(file) {
    var filePath = path.resolve(file);

    if (filePath && fs.existsSync(filePath)) {
      return filePath;
    }

    return false;
  }
function ( file ) { var filePath = path . resolve ( file ) ; if ( filePath && fs . existsSync ( filePath ) ) { return filePath ; } return false ; }
Resolves file path.

@param {string} file - File path.
@returns {string|boolean} Resolved file path, or false if path does not
exist.
Resolves file path .