1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// happy xmas
var npm = require("../npm")
, log = require("./utils/log")
module.exports = function (args, cb) {
npm.config.set("loglevel", "win")
var s = " \u2605"
, f = "\uFF0F"
, b = "\uFF3C"
, o = [ "\u0069" , "\u0020", "\u0020", "\u0020", "\u0020", "\u0020"
, "\u0020", "\u0020", "\u0020", "\u0020", "\u0020", "\u0020"
, "\u0020", "\u2E1B","\u2042","\u2E2E","&","@","\uFF61" ]
, oc = [21,33,34,35,36,37]
, l = "\u005e"
function w (s) { process.binding("stdio").writeError(s) }
w("\n")
;(function T (H) {
for (var i = 0; i < H; i ++) w(" ")
w("\033[33m"+s+"\n")
var M = H * 2 - 1
for (L = 1; L <= H; L ++) {
var O = L * 2 - 2
var S = (M - O) / 2
for (var i = 0; i < S; i ++) w(" ")
w("\033[32m"+f)
for (var i = 0; i < O; i ++) w(
"\033["+oc[Math.floor(Math.random()*oc.length)]+"m"+
o[Math.floor(Math.random() * o.length)]
)
w("\033[32m"+b+"\n")
}
w(" ")
for (var i = 1; i < H; i ++) w("\033[32m"+l)
w("| |")
for (var i = 1; i < H; i ++) w("\033[32m"+l)
if (H > 10) {
w("\n ")
for (var i = 1; i < H; i ++) w(" ")
w("| |")
for (var i = 1; i < H; i ++) w(" ")
}
})(20)
w("\n\n")
log.win("Happy Xmas, Noders!", "loves you", cb)
}
|