Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5021c4dca8
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (44 sloc) 1.102 kb
.\" Generated with Ronnjs/v0.1
.\" http://github.com/kapouer/ronnjs/
.
.TH "NPM\-CONFIG" "3" "August 2011" "" ""
.
.SH "NAME"
\fBnpm-config\fR \-\- Manage the npm configuration file
.
.SH "SYNOPSIS"
.
.nf
npm\.commands\.config(args, callback)
.
.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
\'set\':
Sets a config parameter\. The second element in \'args\' is interpreted as the
key, and the third element is interpreted as the value\.
.
.IP "\(bu" 4
\'get\':
Gets the value of a config parameter\. The second element in \'args\' is the
key to get the value of\.
.
.IP "\(bu" 4
\'delete\' (\'rm\' or \'del\'):
Deletes a parameter from the config\. The second element in \'args\' is the
key to delete\.
.
.IP "\(bu" 4
\'list\' (\'ls\'):
Show all configs that aren\'t secret\. No parameters necessary\.
.
.IP "\(bu" 4
\'edit\':
Opens the config file in the default editor\. This command isn\'t very useful
programmatically, but it is made available\.
.
.IP "" 0
Jump to Line
Something went wrong with that request. Please try again.