Current Path: > > lib > node_modules > npm > node_modules > isexe
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
.npmignore | File | 23 bytes | March 10 2021 14:36:37. | |
LICENSE | File | 765 bytes | March 10 2021 14:36:37. | |
README.md | File | 1395 bytes | March 10 2021 14:36:37. | |
index.js | File | 1192 bytes | March 10 2021 14:36:37. | |
mode.js | File | 909 bytes | March 10 2021 14:36:37. | |
package.json | File | 1536 bytes | March 10 2021 14:36:37. | |
windows.js | File | 890 bytes | March 10 2021 14:36:37. |
module.exports = isexe isexe.sync = sync var fs = require('fs') function isexe (path, options, cb) { fs.stat(path, function (er, stat) { cb(er, er ? false : checkStat(stat, options)) }) } function sync (path, options) { return checkStat(fs.statSync(path), options) } function checkStat (stat, options) { return stat.isFile() && checkMode(stat, options) } function checkMode (stat, options) { var mod = stat.mode var uid = stat.uid var gid = stat.gid var myUid = options.uid !== undefined ? options.uid : process.getuid && process.getuid() var myGid = options.gid !== undefined ? options.gid : process.getgid && process.getgid() var u = parseInt('100', 8) var g = parseInt('010', 8) var o = parseInt('001', 8) var ug = u | g var ret = (mod & o) || (mod & g) && gid === myGid || (mod & u) && uid === myUid || (mod & ug) && myUid === 0 return ret }
SILENT KILLER Tool