]> 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-config.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-config.md
1 npm-config(3) -- Manage the npm configuration files
2 ===================================================
3
4 ## SYNOPSIS
5
6     npm.commands.config(args, callback)
7     var val = npm.config.get(key)
8     npm.config.set(key, val)
9
10 ## DESCRIPTION
11
12 This function acts much the same way as the command-line version.  The first
13 element in the array tells config what to do. Possible values are:
14
15 * `set`
16
17     Sets a config parameter.  The second element in `args` is interpreted as the
18     key, and the third element is interpreted as the value.
19
20 * `get`
21
22     Gets the value of a config parameter. The second element in `args` is the
23     key to get the value of.
24
25 * `delete` (`rm` or `del`)
26
27     Deletes a parameter from the config. The second element in `args` is the
28     key to delete.
29
30 * `list` (`ls`)
31
32     Show all configs that aren't secret. No parameters necessary.
33
34 * `edit`:
35
36     Opens the config file in the default editor. This command isn't very useful
37     programmatically, but it is made available.
38
39 To programmatically access npm configuration settings, or set them for
40 the duration of a program, use the `npm.config.set` and `npm.config.get`
41 functions instead.
42
43 ## SEE ALSO
44
45 * npm(3)