-
Notifications
You must be signed in to change notification settings - Fork 16
/
node-cross-spawn.node.txt
22 lines (16 loc) · 1.86 KB
/
node-cross-spawn.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NODE-CROSS-SPAWN
ALTERNATIVES ==> #See execa
VERSION ==> #7.0.3
NODE-CROSS-SPAWN[.sync](...) #Like CHILD_PROCESS.spawn[Sync](...) but on Windows:
# - if OPTS.shell false:
# - make it behave like OPTS.shell true
# - escape command and arguments, and use path.normalize()
# - allow using shebang:
# - must use OPTS.shell false
# - do it by:
# - finding command path (with NODE-WHICH)
# - including PATHEXT support
# - reading the shebang
# - wrap command with the found interpreter