]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man3/npm-load.3
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man3 / npm-load.3
1 .TH "NPM\-LOAD" "3" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-load\fR \- Load config settings
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm\.load(conf, cb)
9 .fi
10 .RE
11 .SH DESCRIPTION
12 .P
13 npm\.load() must be called before any other function call\.  Both parameters are
14 optional, but the second is recommended\.
15 .P
16 The first parameter is an object containing command\-line config params, and the
17 second parameter is a callback that will be called when npm is loaded and ready
18 to serve\.
19 .P
20 The first parameter should follow a similar structure as the package\.json
21 config object\.
22 .P
23 For example, to emulate the \-\-dev flag, pass an object that looks like this:
24 .P
25 .RS 2
26 .nf
27 {
28   "dev": true
29 }
30 .fi
31 .RE
32 .P
33 For a list of all the available command\-line configs, see \fBnpm help config\fP
34