atcheck/lsscanner/new_ubuntu/node_modules/npm/lib/set.js

14 lines
276 B
JavaScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
module.exports = set
set.usage = 'npm set <key> <value> (See `npm config`)'
var npm = require('./npm.js')
set.completion = npm.commands.config.completion
function set (args, cb) {
if (!args.length) return cb(set.usage)
npm.commands.config(['set'].concat(args), cb)
}