Welcome to mirror list, hosted at ThFree Co, Russian Federation.

substack.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 428e0a5898b6ee38a33b878a1267ac056d92fee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = substack
var npm = require('./npm.js')
var output = require('./utils/output.js')

var isms = [
  '\u001b[32mbeep \u001b[35mboop\u001b[m',
  'Replace your configs with services',
  'SEPARATE ALL THE CONCERNS!',
  'MODULE ALL THE THINGS!',
  '\\o/',
  'but first, burritos',
  'full time mad scientist here',
  'c/,,\\'
]

function substack (args, cb) {
  var i = Math.floor(Math.random() * isms.length)
  output(isms[i])
  var c = args.shift()
  if (c) npm.commands[c](args, cb)
  else cb()
}