"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/isexe/access.js" (8 Mar 2017, 237 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 module.exports = isexe
    2 isexe.sync = sync
    3 
    4 var fs = require('fs')
    5 
    6 function isexe (path, _, cb) {
    7   fs.access(path, fs.X_OK, function (er) {
    8     cb(er, !er)
    9   })
   10 }
   11 
   12 function sync (path, _) {
   13   fs.accessSync(path, fs.X_OK)
   14   return true
   15 }