/
var
/
www
/
flurhymez
/
node_modules
/
isexe
/
/var/www/flurhymez/node_modules/isexe
mkdir
upload
Name
Size
Mode
Actions
test/
-
0755
rm
.npmignore
23
0644
edit
dl
rm
index.js
1192
0644
edit
dl
rm
LICENSE
765
0644
edit
dl
rm
mode.js
909
0644
edit
dl
rm
package.json
1482
0644
edit
dl
rm
README.md
1395
0644
edit
dl
rm
windows.js
890
0644
edit
dl
rm
Edit:
/var/www/flurhymez/node_modules/isexe/windows.js
(890B)
module.exports = isexe isexe.sync = sync var fs = require('fs') function checkPathExt (path, options) { var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT if (!pathext) { return true } pathext = pathext.split(';') if (pathext.indexOf('') !== -1) { return true } for (var i = 0; i < pathext.length; i++) { var p = pathext[i].toLowerCase() if (p && path.substr(-p.length).toLowerCase() === p) { return true } } return false } function checkStat (stat, path, options) { if (!stat.isSymbolicLink() && !stat.isFile()) { return false } return checkPathExt(path, options) } function isexe (path, options, cb) { fs.stat(path, function (er, stat) { cb(er, er ? false : checkStat(stat, path, options)) }) } function sync (path, options) { return checkStat(fs.statSync(path), path, options) }
Save
cmd:
run