-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnpm-run-path.node.txt
21 lines (16 loc) · 1.18 KB
/
npm-run-path.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
┏━━━━━━━━━━━━━━━━━━┓
┃ NPM-RUN-PATH ┃
┗━━━━━━━━━━━━━━━━━━┛
ALTERNATIVES ==> #See execa
VERSION ==> #6.0.0
npmRunPath([OPTS])->ENVVAR_PATH #Returns cross-browser ENVVAR PATH with additional (in priority order):
# - LPREFIX/node_modules/.bin (see npm doc)
# - if preferLocal BOOL true (def)
# - process.execPath (node binary directory)
# - if addExecPath BOOL true (def)
#Uses PATH-KEY (see its doc)
#OPTS:
# - cwd 'DIR'|URL (def: process.cwd())
# - execPath 'PATH'|URL (def: process.execPath)
# - path (def: process.env[PATH])
npmRunPathEnv([OPTS])->ENV #Same but also sets ENVVAR PATH, using OPTS.env OBJ (def: process.env) instead of OPTS.path