"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/substack.js" (11 Apr 2017, 509 Bytes) of package /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 module.exports = substack
    2 var npm = require('./npm.js')
    3 var output = require('./utils/output.js')
    4 
    5 var isms = [
    6   '\u001b[32mbeep \u001b[35mboop\u001b[m',
    7   'Replace your configs with services',
    8   'SEPARATE ALL THE CONCERNS!',
    9   'MODULE ALL THE THINGS!',
   10   '\\o/',
   11   'but first, burritos',
   12   'full time mad scientist here',
   13   'c/,,\\'
   14 ]
   15 
   16 function substack (args, cb) {
   17   var i = Math.floor(Math.random() * isms.length)
   18   output(isms[i])
   19   var c = args.shift()
   20   if (c) npm.commands[c](args, cb)
   21   else cb()
   22 }