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: 3d61c1e93e21722f0d2f361abe60f8e7800e8656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const npm = require('./npm.js')
const config = require('./config.js')

const usage = 'npm set <key>=<value> [<key>=<value> ...] (See `npm config`)'

const completion = config.completion

const cmd = (args, cb) => {
  if (!args.length)
    return cb(usage)
  npm.commands.config(['set'].concat(args), cb)
}

module.exports = Object.assign(cmd, { usage, completion })