Minimal module to check if a file is executable, and a normal file.
fs.stat and tests against the
PATHEXT environment variable on
var isexe =// same thing but synchronous, throws errorsvar isExe = isexe// treat errors as just "not executable"var isExe = isexe
Check if the path is executable. If no callback provided, and a
Promise object is available, then a Promise will be returned.
Will raise whatever errors may be raised by
options.ignoreErrors is set to true.
isexe but returns the value and throws any errors raised.
ignoreErrorsTreat all errors as "no, this is not executable", but don't raise them.
uidNumber to use as the user id
gidNumber to use as the group id
pathExtList of path extensions to use instead of
PATHEXTenvironment variable on Windows.