deps/npm/lib/config.js
function config (args, cb) {
  var action = args.shift()
  switch (action) {
    case "set": return set(args[0], args[1], cb)
    case "get": return get(args[0], cb)
    case "delete": case "rm": case "del": return del(args[0], cb)
    case "list": case "ls": return list(cb)
    case "edit": return edit(cb)
    default: return unknown(action, cb)
  }
}
function config (args, cb) {
  var action = args.shift()
  switch (action) {
    case "set": return set(args[0], args[1], cb)
    case "get": return get(args[0], cb)
    case "delete": case "rm": case "del": return del(args[0], cb)
    case "list": case "ls": return list(cb)
    case "edit": return edit(cb)
    default: return unknown(action, cb)
  }
}
function config ( args , cb ) { var action = args . shift ( ) switch ( action ) { case "set" : return set ( args [ 0 ] , args [ 1 ] , cb ) case "get" : return get ( args [ 0 ] , cb ) case "delete" : case "rm" : case "del" : return del ( args [ 0 ] , cb ) case "list" : case "ls" : return list ( cb ) case "edit" : return edit ( cb ) default : return unknown ( action , cb ) } }
npm config set key value npm config get key npm config list
npm config set key value npm config get key npm config list