• File: substack.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/lib/substack.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 509 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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()
}