Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | let nope = s => String(s)
|
---|
2 |
|
---|
3 | export let isColorSupported = false
|
---|
4 | export let reset = nope
|
---|
5 | export let bold = nope
|
---|
6 | export let dim = nope
|
---|
7 | export let italic = nope
|
---|
8 | export let underline = nope
|
---|
9 | export let inverse = nope
|
---|
10 | export let hidden = nope
|
---|
11 | export let strikethrough = nope
|
---|
12 | export let black = nope
|
---|
13 | export let red = nope
|
---|
14 | export let green = nope
|
---|
15 | export let yellow = nope
|
---|
16 | export let blue = nope
|
---|
17 | export let magenta = nope
|
---|
18 | export let cyan = nope
|
---|
19 | export let white = nope
|
---|
20 | export let gray = nope
|
---|
21 | export let bgBlack = nope
|
---|
22 | export let bgRed = nope
|
---|
23 | export let bgGreen = nope
|
---|
24 | export let bgYellow = nope
|
---|
25 | export let bgBlue = nope
|
---|
26 | export let bgMagenta = nope
|
---|
27 | export let bgCyan = nope
|
---|
28 | export let bgWhite = nope
|
---|
29 |
|
---|
30 | export function createColors() {
|
---|
31 | return {
|
---|
32 | isColorSupported,
|
---|
33 | reset,
|
---|
34 | bold,
|
---|
35 | dim,
|
---|
36 | italic,
|
---|
37 | underline,
|
---|
38 | inverse,
|
---|
39 | hidden,
|
---|
40 | strikethrough,
|
---|
41 | black,
|
---|
42 | red,
|
---|
43 | green,
|
---|
44 | yellow,
|
---|
45 | blue,
|
---|
46 | magenta,
|
---|
47 | cyan,
|
---|
48 | white,
|
---|
49 | gray,
|
---|
50 | bgBlack,
|
---|
51 | bgRed,
|
---|
52 | bgGreen,
|
---|
53 | bgYellow,
|
---|
54 | bgBlue,
|
---|
55 | bgMagenta,
|
---|
56 | bgCyan,
|
---|
57 | bgWhite
|
---|
58 | }
|
---|
59 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.