]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/api/npm-load.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / api / npm-load.md
1 npm-load(3) -- Load config settings
2 ===================================
3
4 ## SYNOPSIS
5
6     npm.load(conf, cb)
7
8 ## DESCRIPTION
9
10 npm.load() must be called before any other function call.  Both parameters are
11 optional, but the second is recommended.
12
13 The first parameter is an object containing command-line config params, and the
14 second parameter is a callback that will be called when npm is loaded and ready
15 to serve.
16
17 The first parameter should follow a similar structure as the package.json
18 config object.
19
20 For example, to emulate the --dev flag, pass an object that looks like this:
21
22     {
23       "dev": true
24     }
25
26 For a list of all the available command-line configs, see `npm help config`