-
Notifications
You must be signed in to change notification settings - Fork 16
/
npm-path.node.txt
30 lines (20 loc) · 2.15 KB
/
npm-path.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
26
27
28
29
30
NPM-PATH
ALTERNATIVES ==> #See execa
VERSION ==> #2.0.4
get([OPTS], #Returns cross-browser ENVVAR PATH with additional:
FUNC(ERROR, ENVVAR_PATH)) # - LPREFIX/node_modules/.bin (see npm doc)
getSync([OPTS])->ENVVAR_PATH # - NPM_PATH/node-gyp-bin/
# - process.execPath (node binary directory)
#OPTS:
# - cwd 'DIR' (def: process.cwd())
# - env OBJ (def: process.env)
# - npm 'PATH' (def: "which npm", see node-which doc)
set(...)
setSync(...) #Same but also sets ENVVAR PATH
NPM-PATH(...) #Same as NPM-PATH.set(...)
PATH #ENVVAR PATH name ('PATH|Path' on Windows, 'PATH' on OSX/Linux)
SEPARATOR #ENVVAR PATH separator (';' on Windows, ':' on OSX/Linux)
#Prefer using require('path').delimiter
npm-path #CLI that performs and returns NPM-PATH.set(...)