1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPM\-CONFIG" "3" "November 2013" "" ""
7 \fBnpm-config\fR \-\- Manage the npm configuration files
12 npm\.commands\.config(args, callback)
13 var val = npm\.config\.get(key)
14 npm\.config\.set(key, val)
19 This function acts much the same way as the command\-line version\. The first
20 element in the array tells config what to do\. Possible values are:
26 Sets a config parameter\. The second element in \fBargs\fR is interpreted as the
27 key, and the third element is interpreted as the value\.
33 Gets the value of a config parameter\. The second element in \fBargs\fR is the
34 key to get the value of\.
37 \fBdelete\fR (\fBrm\fR or \fBdel\fR)
40 Deletes a parameter from the config\. The second element in \fBargs\fR is the
47 Show all configs that aren\'t secret\. No parameters necessary\.
53 Opens the config file in the default editor\. This command isn\'t very useful
54 programmatically, but it is made available\.
59 To programmatically access npm configuration settings, or set them for
60 the duration of a program, use the \fBnpm\.config\.set\fR and \fBnpm\.config\.get\fR