2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
module.exports = set
|
|
|
|
|
2020-12-18 15:39:05 -05:00
|
|
|
set.usage = 'npm set <key>=<value> [<key>=<value> ...] (See `npm config`)'
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2015-10-09 23:13:57 -07:00
|
|
|
var npm = require('./npm.js')
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
set.completion = npm.commands.config.completion
|
|
|
|
|
|
|
|
function set (args, cb) {
|
2020-11-01 07:54:36 +01:00
|
|
|
if (!args.length)
|
|
|
|
return cb(set.usage)
|
2015-10-09 23:13:57 -07:00
|
|
|
npm.commands.config(['set'].concat(args), cb)
|
2011-11-21 09:48:45 -08:00
|
|
|
}
|