1 npm-config(3) -- Manage the npm configuration files
2 ===================================================
6 npm.commands.config(args, callback)
7 var val = npm.config.get(key)
8 npm.config.set(key, val)
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:
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.
22 Gets the value of a config parameter. The second element in `args` is the
23 key to get the value of.
25 * `delete` (`rm` or `del`)
27 Deletes a parameter from the config. The second element in `args` is the
32 Show all configs that aren't secret. No parameters necessary.
36 Opens the config file in the default editor. This command isn't very useful
37 programmatically, but it is made available.
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`