Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
516 bytes
|
Line | |
---|
1 | const COLORS_ON = {
|
---|
2 | RESET: '\x1B[39m',
|
---|
3 | ANSWER: '\x1B[36m', // NYAN
|
---|
4 | SUCCESS: '\x1B[32m', // GREEN
|
---|
5 | QUESTION: '\x1B[1m', // BOLD
|
---|
6 | question: function (str) {
|
---|
7 | return this.QUESTION + str + '\x1B[22m'
|
---|
8 | },
|
---|
9 | success: function (str) {
|
---|
10 | return this.SUCCESS + str + this.RESET
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | const COLORS_OFF = {
|
---|
15 | RESET: '',
|
---|
16 | ANSWER: '',
|
---|
17 | SUCCESS: '',
|
---|
18 | QUESTION: '',
|
---|
19 | question: function (str) {
|
---|
20 | return str
|
---|
21 | },
|
---|
22 | success: function (str) {
|
---|
23 | return str
|
---|
24 | }
|
---|
25 | }
|
---|
26 |
|
---|
27 | exports.ON = COLORS_ON
|
---|
28 | exports.OFF = COLORS_OFF
|
---|
Note:
See
TracBrowser
for help on using the repository browser.