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 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) }
SILENT KILLER Tool