-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolors.js
59 lines (41 loc) · 870 Bytes
/
colors.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
const colors = require("colors");
module.exports = function(color) {
switch (color) {
case "black":
return colors.black;
case "dark_blue":
return colors.blue;
case "dark_green":
return colors.green;
case "dark_cyan":
return colors.cyan;
case "dark_aqua":
return colors.cyan;
case "dark_red":
return colors.red;
case "dark_purple":
return colors.magenta;
case "gold":
return colors.yellow;
case "gray":
return colors.gray;
case "dark_gray":
return colors.gray;
case "blue":
return colors.brightBlue;
case "green":
return colors.brightGreen;
case "aqua":
return colors.brightCyan;
case "red":
return colors.brightRed;
case "light_purple":
return colors.brightMagenta;
case "yellow":
return colors.brightYellow;
case "white":
return colors.white;
default:
return colors.reset;
}
}