set.js 276 B

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