node/deps/npm/man/man3/npm-load.3
Kat Marchán b3fee8e6a6 deps: upgrade to npm 2.14.2
PR-URL: https://github.com/nodejs/node/pull/2696
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
2015-09-07 12:02:44 +10:00

35 lines
764 B
Groff

.TH "NPM\-LOAD" "3" "September 2015" "" ""
.SH "NAME"
\fBnpm-load\fR \- Load config settings
.SH SYNOPSIS
.P
.RS 2
.nf
npm\.load(conf, cb)
.fi
.RE
.SH DESCRIPTION
.P
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 containing 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:
.P
.RS 2
.nf
{
"dev": true
}
.fi
.RE
.P
For a list of all the available command\-line configs, see \fBnpm help config\fP