Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
625 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | let nope = s => String(s)
|
---|
| 2 |
|
---|
| 3 | function createColors() {
|
---|
| 4 | return {
|
---|
| 5 | isColorSupported: false,
|
---|
| 6 | reset: nope,
|
---|
| 7 | bold: nope,
|
---|
| 8 | dim: nope,
|
---|
| 9 | italic: nope,
|
---|
| 10 | underline: nope,
|
---|
| 11 | inverse: nope,
|
---|
| 12 | hidden: nope,
|
---|
| 13 | strikethrough: nope,
|
---|
| 14 | black: nope,
|
---|
| 15 | red: nope,
|
---|
| 16 | green: nope,
|
---|
| 17 | yellow: nope,
|
---|
| 18 | blue: nope,
|
---|
| 19 | magenta: nope,
|
---|
| 20 | cyan: nope,
|
---|
| 21 | white: nope,
|
---|
| 22 | gray: nope,
|
---|
| 23 | bgBlack: nope,
|
---|
| 24 | bgRed: nope,
|
---|
| 25 | bgGreen: nope,
|
---|
| 26 | bgYellow: nope,
|
---|
| 27 | bgBlue: nope,
|
---|
| 28 | bgMagenta: nope,
|
---|
| 29 | bgCyan: nope,
|
---|
| 30 | bgWhite: nope
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | module.exports = createColors()
|
---|
| 35 | module.exports.createColors = createColors
|
---|
Note:
See
TracBrowser
for help on using the repository browser.