"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/set.js" (7 Feb 2017, 276 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

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