mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
848 B
45 lines
848 B
12 years ago
|
.\" Generated with Ronnjs 0.3.8
|
||
13 years ago
|
.\" http://github.com/kapouer/ronnjs/
|
||
|
.
|
||
11 years ago
|
.TH "NPM\-LOAD" "3" "July 2013" "" ""
|
||
13 years ago
|
.
|
||
|
.SH "NAME"
|
||
|
\fBnpm-load\fR \-\- Load config settings
|
||
|
.
|
||
|
.SH "SYNOPSIS"
|
||
|
.
|
||
|
.nf
|
||
|
npm\.load(conf, cb)
|
||
|
.
|
||
|
.fi
|
||
|
.
|
||
|
.SH "DESCRIPTION"
|
||
|
npm\.load() must be called before any other function call\. Both parameters are
|
||
|
optional, but the second is recommended\.
|
||
|
.
|
||
|
.P
|
||
|
The first parameter is an object hash of command\-line config params, and the
|
||
|
second parameter is a callback that will be called when npm is loaded and
|
||
|
ready to serve\.
|
||
|
.
|
||
|
.P
|
||
|
The first parameter should follow a similar structure as the package\.json
|
||
|
config object\.
|
||
|
.
|
||
|
.P
|
||
|
For example, to emulate the \-\-dev flag, pass an object that looks like this:
|
||
|
.
|
||
|
.IP "" 4
|
||
|
.
|
||
|
.nf
|
||
|
{
|
||
|
"dev": true
|
||
|
}
|
||
|
.
|
||
|
.fi
|
||
|
.
|
||
|
.IP "" 0
|
||
|
.
|
||
|
.P
|
||
|
For a list of all the available command\-line configs, see \fBnpm help config\fR
|