0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/deps/npm/lib/substack.js
2012-06-11 08:13:36 -07:00

21 lines
473 B
JavaScript

module.exports = substack
var npm = require("./npm.js")
var isms =
[ "\033[32mbeep \033[35mboop\033[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)
console.log(isms[i])
var c = args.shift()
if (c) npm.commands[c](args, cb)
else cb()
}