node/deps/npm/man/man3/config.3
isaacs 054127112c Upgrade npm to 1.1.3
* Update request to support HTTPS-over-HTTP proxy tunneling
* Throw on undefined envs in config settings
* Update which to 1.0.5
* Fix windows UNC busyloop in findPrefix
* Bundle nested bundleDependencies properly
* Alias adduser to add-user
* Doc updates  (Christian Howe, Henrik Hodne, Andrew Lunny)
* ignore logfd/outfd streams in makeEnv() (Rod Vagg)
* shrinkwrap: Behave properly with url-installed deps
* install: Support --save with url install targets
* Support installing naked tars or single-file modules from urls etc.
* init: Don't add engines section
* Don't run make clean on rebuild
* Added missing unicode replacement (atomizer)
2012-03-02 09:31:46 -08:00

70 lines
1.4 KiB
Groff

.\" Generated with Ronnjs/v0.1
.\" http://github.com/kapouer/ronnjs/
.
.TH "NPM\-CONFIG" "3" "March 2012" "" ""
.
.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