@mojir/lits 2.1.30 → 2.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cli/src/colorizer.d.ts +36 -36
- package/dist/cli/cli.js +121 -1531
- package/dist/cli/src/colorizer.d.ts +36 -36
- package/package.json +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
export type Colorizer = ReturnType<typeof createColorizer>;
|
|
2
|
-
export declare
|
|
3
|
-
Reset
|
|
4
|
-
Bright
|
|
5
|
-
ResetBright
|
|
6
|
-
Dim
|
|
7
|
-
ResetDim
|
|
8
|
-
Italic
|
|
9
|
-
ResetItalic
|
|
10
|
-
Underscore
|
|
11
|
-
ResetUnderscore
|
|
12
|
-
Blink
|
|
13
|
-
ResetBlink
|
|
14
|
-
Reverse
|
|
15
|
-
ResetReverse
|
|
16
|
-
Hidden
|
|
17
|
-
ResetHidden
|
|
18
|
-
FgBlack
|
|
19
|
-
FgRed
|
|
20
|
-
FgGreen
|
|
21
|
-
FgYellow
|
|
22
|
-
FgBlue
|
|
23
|
-
FgMagenta
|
|
24
|
-
FgCyan
|
|
25
|
-
FgWhite
|
|
26
|
-
FgGray
|
|
27
|
-
BgBlack
|
|
28
|
-
BgRed
|
|
29
|
-
BgGreen
|
|
30
|
-
BgYellow
|
|
31
|
-
BgBlue
|
|
32
|
-
BgMagenta
|
|
33
|
-
BgCyan
|
|
34
|
-
BgWhite
|
|
35
|
-
BgGray
|
|
36
|
-
}
|
|
2
|
+
export declare const Colors: {
|
|
3
|
+
readonly Reset: "" | "\u001B[0m";
|
|
4
|
+
readonly Bright: "" | "\u001B[1m";
|
|
5
|
+
readonly ResetBright: "" | "\u001B[21m";
|
|
6
|
+
readonly Dim: "" | "\u001B[2m";
|
|
7
|
+
readonly ResetDim: "" | "\u001B[22m";
|
|
8
|
+
readonly Italic: "" | "\u001B[3m";
|
|
9
|
+
readonly ResetItalic: "" | "\u001B[23m";
|
|
10
|
+
readonly Underscore: "" | "\u001B[4m";
|
|
11
|
+
readonly ResetUnderscore: "" | "\u001B[24m";
|
|
12
|
+
readonly Blink: "" | "\u001B[5m";
|
|
13
|
+
readonly ResetBlink: "" | "\u001B[25m";
|
|
14
|
+
readonly Reverse: "" | "\u001B[7m";
|
|
15
|
+
readonly ResetReverse: "" | "\u001B[27m";
|
|
16
|
+
readonly Hidden: "" | "\u001B[8m";
|
|
17
|
+
readonly ResetHidden: "" | "\u001B[28m";
|
|
18
|
+
readonly FgBlack: "" | "\u001B[30m";
|
|
19
|
+
readonly FgRed: "" | "\u001B[31m";
|
|
20
|
+
readonly FgGreen: "" | "\u001B[32m";
|
|
21
|
+
readonly FgYellow: "" | "\u001B[33m";
|
|
22
|
+
readonly FgBlue: "" | "\u001B[34m";
|
|
23
|
+
readonly FgMagenta: "" | "\u001B[35m";
|
|
24
|
+
readonly FgCyan: "" | "\u001B[36m";
|
|
25
|
+
readonly FgWhite: "" | "\u001B[37m";
|
|
26
|
+
readonly FgGray: "" | "\u001B[90m";
|
|
27
|
+
readonly BgBlack: "" | "\u001B[40m";
|
|
28
|
+
readonly BgRed: "" | "\u001B[41m";
|
|
29
|
+
readonly BgGreen: "" | "\u001B[42m";
|
|
30
|
+
readonly BgYellow: "" | "\u001B[43m";
|
|
31
|
+
readonly BgBlue: "" | "\u001B[44m";
|
|
32
|
+
readonly BgMagenta: "" | "\u001B[45m";
|
|
33
|
+
readonly BgCyan: "" | "\u001B[46m";
|
|
34
|
+
readonly BgWhite: "" | "\u001B[47m";
|
|
35
|
+
readonly BgGray: "" | "\u001B[100m";
|
|
36
|
+
};
|
|
37
37
|
type Formatter = (text: string) => string;
|
|
38
|
-
declare function createFormatter(enableColors: boolean, colors:
|
|
38
|
+
declare function createFormatter(enableColors: boolean, colors: typeof Colors[keyof typeof Colors][], formatters: Formatter[]): {
|
|
39
39
|
(text: string): string;
|
|
40
40
|
black: ReturnType<typeof createFormatter>;
|
|
41
41
|
red: ReturnType<typeof createFormatter>;
|