blob: c4218a845119f9f60f1646d3c70e83a3c58e9595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
npm-config(3) -- Manage the npm configuration file
==================================================
## SYNOPSIS
npm.commands.config(args, callback)
## DESCRIPTION
This function acts much the same way as the command-line version. The first
element in the array tells config what to do. Possible values are:
* 'set':
Sets a config parameter. The second element in 'args' is interpreted as the
key, and the third element is interpreted as the value.
* 'get':
Gets the value of a config parameter. The second element in 'args' is the
key to get the value of.
* 'delete' ('rm' or 'del'):
Deletes a parameter from the config. The second element in 'args' is the
key to delete.
* 'list' ('ls'):
Show all configs that aren't secret. No parameters necessary.
* 'edit':
Opens the config file in the default editor. This command isn't very useful
programmatically, but it is made available.
|