Welcome to mirror list, hosted at ThFree Co, Russian Federation.

set.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5e7376fbd55f58401e020156d0e75d9a7770b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

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)
}