-
Notifications
You must be signed in to change notification settings - Fork 16
/
isexe.node.txt
25 lines (19 loc) · 2.17 KB
/
isexe.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ISEXE
VERSION ==> #2.0.0
PROBLEMS ==> # - not maintained
# - should use EUID|EGID instead of UID|GID
# - should use getgroups()
ISEXE('PATH'[,OPTS])->PROMISE_BOOL#Check if file is executable, cross-browser.
ISEXE.sync('PATH'[, OPTS])->BOOL #On Unix:
# - file exists and is regular
# - FS.stat().mode has 'x' permission for:
# - user if STAT.uid === process.getuid() (or OPTS.uid)
# - group if STAT.gid === process.getgid() (or OPTS.gid)
# - others otherwise
#On Windows:
# - file exists and is regular or symlink
# - file extension is among ENVVAR PATHEXT (or OPTS.pathExt)
#OPTS:
# - ignoreErrors BOOL: if true (def: false), return false instead of rejecting|throwing ERROR