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: a9e0ba91c65dc446c81da22c83b87fc6ad4b29a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

module.exports = set

set.usage = "npm set <key> <value> (See `npm config`)"

var npm = require("../npm")

set.completion = function (args, index, cb) {
  npm.commands.config.completion(["set"].concat(args), index + 1, cb)
}

function set (args, cb) {
  npm.commands.config(["set"].concat(args), cb)
}