atcheck/lsscanner/new_ubuntu/node_modules_win/npm/lib/substack.js

23 lines
509 B
JavaScript
Raw Normal View History

2019-12-16 18:42:21 +01:00
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()
}