-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
31 lines (23 loc) · 803 Bytes
/
index.js
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
#!/usr/bin/env node
module.exports = (function() {
'use strict';
var turboLogo = require('turbo-logo'),
colors = require('colors/safe');
return {
print: finalPrint
};
/////////
function getText() {
return 'Burger JS';
}
function getBurgerAscii() {
return ' _..----.._ \r\n .\' o \'. \r\n \/ o o \\\r\n |o o o|\r\n \/\'-.._o __.-\'\\\r\n \\ ````` \/\r\n |``--........--\'`|\r\n \\ \/\r\n `\'----------\'`';
}
function finalPrint(options) {
var burger = getBurgerAscii(),
text = getText(),
color = options && options.color || 'rainbow';
console.log(colors[color](burger));
turboLogo(text, color);
}
})();