summaryrefslogtreecommitdiff
path: root/deps/npm/man/man3/npm-config.3
blob: 818a6e4bdfc3073b6b166d122b2552fef2d22118 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.\" Generated with Ronnjs 0.3.8
.\" http://github.com/kapouer/ronnjs/
.
.TH "NPM\-CONFIG" "3" "May 2014" "" ""
.
.SH "NAME"
\fBnpm-config\fR \-\- Manage the npm configuration files
.
.SH "SYNOPSIS"
.
.nf
npm\.commands\.config(args, callback)
var val = npm\.config\.get(key)
npm\.config\.set(key, val)
.
.fi
.
.SH "DESCRIPTION"
This function acts much the same way as the command\-line version\.  The first
element in the array tells config what to do\. Possible values are:
.
.IP "\(bu" 4
\fBset\fR
.
.IP
Sets a config parameter\.  The second element in \fBargs\fR is interpreted as the
key, and the third element is interpreted as the value\.
.
.IP "\(bu" 4
\fBget\fR
.
.IP
Gets the value of a config parameter\. The second element in \fBargs\fR is the
key to get the value of\.
.
.IP "\(bu" 4
\fBdelete\fR (\fBrm\fR or \fBdel\fR)
.
.IP
Deletes a parameter from the config\. The second element in \fBargs\fR is the
key to delete\.
.
.IP "\(bu" 4
\fBlist\fR (\fBls\fR)
.
.IP
Show all configs that aren\'t secret\. No parameters necessary\.
.
.IP "\(bu" 4
\fBedit\fR:
.
.IP
Opens the config file in the default editor\. This command isn\'t very useful
programmatically, but it is made available\.
.
.IP "" 0
.
.P
To programmatically access npm configuration settings, or set them for
the duration of a program, use the \fBnpm\.config\.set\fR and \fBnpm\.config\.get\fR
functions instead\.
.
.SH "SEE ALSO"
.
.IP "\(bu" 4
npm apihelp npm
.
.IP "" 0