1 |
|
2 | module.exports = set
|
3 |
|
4 | set.usage = 'npm set <key> <value> (See `npm config`)'
|
5 |
|
6 | var npm = require('./npm.js')
|
7 |
|
8 | set.completion = npm.commands.config.completion
|
9 |
|
10 | function set (args, cb) {
|
11 | if (!args.length) return cb(set.usage)
|
12 | npm.commands.config(['set'].concat(args), cb)
|
13 | }
|