ahmedelgabri 8.0.5 → 8.1.0

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.
@@ -1,286 +0,0 @@
1
- /** RGB 8-bits per channel. Each in range `0->255` or `0x00->0xff` */
2
- export interface Rgb {
3
- /** Red component value */
4
- r: number;
5
- /** Green component value */
6
- g: number;
7
- /** Blue component value */
8
- b: number;
9
- }
10
- /**
11
- * Set changing text color to enabled or disabled
12
- * @param value
13
- */
14
- export declare function setColorEnabled(value: boolean): void;
15
- /** Get whether text color change is enabled or disabled. */
16
- export declare function getColorEnabled(): boolean;
17
- /**
18
- * Reset the text modified.
19
- * @param str text to reset
20
- */
21
- export declare function reset(str: string): string;
22
- /**
23
- * Make the text bold.
24
- * @param str text to make bold
25
- */
26
- export declare function bold(str: string): string;
27
- /**
28
- * The text emits only a small amount of light.
29
- * @param str text to dim
30
- *
31
- * Warning: Not all terminal emulators support `dim`.
32
- * For compatibility across all terminals, use {@linkcode gray} or {@linkcode brightBlack} instead.
33
- */
34
- export declare function dim(str: string): string;
35
- /**
36
- * Make the text italic.
37
- * @param str text to make italic
38
- */
39
- export declare function italic(str: string): string;
40
- /**
41
- * Make the text underline.
42
- * @param str text to underline
43
- */
44
- export declare function underline(str: string): string;
45
- /**
46
- * Invert background color and text color.
47
- * @param str text to invert its color
48
- */
49
- export declare function inverse(str: string): string;
50
- /**
51
- * Make the text hidden.
52
- * @param str text to hide
53
- */
54
- export declare function hidden(str: string): string;
55
- /**
56
- * Put horizontal line through the center of the text.
57
- * @param str text to strike through
58
- */
59
- export declare function strikethrough(str: string): string;
60
- /**
61
- * Set text color to black.
62
- * @param str text to make black
63
- */
64
- export declare function black(str: string): string;
65
- /**
66
- * Set text color to red.
67
- * @param str text to make red
68
- */
69
- export declare function red(str: string): string;
70
- /**
71
- * Set text color to green.
72
- * @param str text to make green
73
- */
74
- export declare function green(str: string): string;
75
- /**
76
- * Set text color to yellow.
77
- * @param str text to make yellow
78
- */
79
- export declare function yellow(str: string): string;
80
- /**
81
- * Set text color to blue.
82
- * @param str text to make blue
83
- */
84
- export declare function blue(str: string): string;
85
- /**
86
- * Set text color to magenta.
87
- * @param str text to make magenta
88
- */
89
- export declare function magenta(str: string): string;
90
- /**
91
- * Set text color to cyan.
92
- * @param str text to make cyan
93
- */
94
- export declare function cyan(str: string): string;
95
- /**
96
- * Set text color to white.
97
- * @param str text to make white
98
- */
99
- export declare function white(str: string): string;
100
- /**
101
- * Set text color to gray.
102
- * @param str text to make gray
103
- */
104
- export declare function gray(str: string): string;
105
- /**
106
- * Set text color to bright black.
107
- * @param str text to make bright-black
108
- */
109
- export declare function brightBlack(str: string): string;
110
- /**
111
- * Set text color to bright red.
112
- * @param str text to make bright-red
113
- */
114
- export declare function brightRed(str: string): string;
115
- /**
116
- * Set text color to bright green.
117
- * @param str text to make bright-green
118
- */
119
- export declare function brightGreen(str: string): string;
120
- /**
121
- * Set text color to bright yellow.
122
- * @param str text to make bright-yellow
123
- */
124
- export declare function brightYellow(str: string): string;
125
- /**
126
- * Set text color to bright blue.
127
- * @param str text to make bright-blue
128
- */
129
- export declare function brightBlue(str: string): string;
130
- /**
131
- * Set text color to bright magenta.
132
- * @param str text to make bright-magenta
133
- */
134
- export declare function brightMagenta(str: string): string;
135
- /**
136
- * Set text color to bright cyan.
137
- * @param str text to make bright-cyan
138
- */
139
- export declare function brightCyan(str: string): string;
140
- /**
141
- * Set text color to bright white.
142
- * @param str text to make bright-white
143
- */
144
- export declare function brightWhite(str: string): string;
145
- /**
146
- * Set background color to black.
147
- * @param str text to make its background black
148
- */
149
- export declare function bgBlack(str: string): string;
150
- /**
151
- * Set background color to red.
152
- * @param str text to make its background red
153
- */
154
- export declare function bgRed(str: string): string;
155
- /**
156
- * Set background color to green.
157
- * @param str text to make its background green
158
- */
159
- export declare function bgGreen(str: string): string;
160
- /**
161
- * Set background color to yellow.
162
- * @param str text to make its background yellow
163
- */
164
- export declare function bgYellow(str: string): string;
165
- /**
166
- * Set background color to blue.
167
- * @param str text to make its background blue
168
- */
169
- export declare function bgBlue(str: string): string;
170
- /**
171
- * Set background color to magenta.
172
- * @param str text to make its background magenta
173
- */
174
- export declare function bgMagenta(str: string): string;
175
- /**
176
- * Set background color to cyan.
177
- * @param str text to make its background cyan
178
- */
179
- export declare function bgCyan(str: string): string;
180
- /**
181
- * Set background color to white.
182
- * @param str text to make its background white
183
- */
184
- export declare function bgWhite(str: string): string;
185
- /**
186
- * Set background color to bright black.
187
- * @param str text to make its background bright-black
188
- */
189
- export declare function bgBrightBlack(str: string): string;
190
- /**
191
- * Set background color to bright red.
192
- * @param str text to make its background bright-red
193
- */
194
- export declare function bgBrightRed(str: string): string;
195
- /**
196
- * Set background color to bright green.
197
- * @param str text to make its background bright-green
198
- */
199
- export declare function bgBrightGreen(str: string): string;
200
- /**
201
- * Set background color to bright yellow.
202
- * @param str text to make its background bright-yellow
203
- */
204
- export declare function bgBrightYellow(str: string): string;
205
- /**
206
- * Set background color to bright blue.
207
- * @param str text to make its background bright-blue
208
- */
209
- export declare function bgBrightBlue(str: string): string;
210
- /**
211
- * Set background color to bright magenta.
212
- * @param str text to make its background bright-magenta
213
- */
214
- export declare function bgBrightMagenta(str: string): string;
215
- /**
216
- * Set background color to bright cyan.
217
- * @param str text to make its background bright-cyan
218
- */
219
- export declare function bgBrightCyan(str: string): string;
220
- /**
221
- * Set background color to bright white.
222
- * @param str text to make its background bright-white
223
- */
224
- export declare function bgBrightWhite(str: string): string;
225
- /**
226
- * Set text color using paletted 8bit colors.
227
- * https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
228
- * @param str text color to apply paletted 8bit colors to
229
- * @param color code
230
- */
231
- export declare function rgb8(str: string, color: number): string;
232
- /**
233
- * Set background color using paletted 8bit colors.
234
- * https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
235
- * @param str text color to apply paletted 8bit background colors to
236
- * @param color code
237
- */
238
- export declare function bgRgb8(str: string, color: number): string;
239
- /**
240
- * Set text color using 24bit rgb.
241
- * `color` can be a number in range `0x000000` to `0xffffff` or
242
- * an `Rgb`.
243
- *
244
- * To produce the color magenta:
245
- *
246
- * ```ts
247
- * import { rgb24 } from "@std/fmt/colors";
248
- *
249
- * rgb24("foo", 0xff00ff);
250
- * rgb24("foo", {r: 255, g: 0, b: 255});
251
- * ```
252
- * @param str text color to apply 24bit rgb to
253
- * @param color code
254
- */
255
- export declare function rgb24(str: string, color: number | Rgb): string;
256
- /**
257
- * Set background color using 24bit rgb.
258
- * `color` can be a number in range `0x000000` to `0xffffff` or
259
- * an `Rgb`.
260
- *
261
- * To produce the color magenta:
262
- *
263
- * ```ts
264
- * import { bgRgb24 } from "@std/fmt/colors";
265
- *
266
- * bgRgb24("foo", 0xff00ff);
267
- * bgRgb24("foo", {r: 255, g: 0, b: 255});
268
- * ```
269
- * @param str text color to apply 24bit rgb to
270
- * @param color code
271
- */
272
- export declare function bgRgb24(str: string, color: number | Rgb): string;
273
- /**
274
- * Remove ANSI escape codes from the string.
275
- * @param string to remove ANSI escape codes from
276
- *
277
- * @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
278
- */
279
- export declare function stripColor(string: string): string;
280
- /**
281
- * Remove ANSI escape codes from the string.
282
- *
283
- * @param string to remove ANSI escape codes from
284
- */
285
- export declare function stripAnsiCode(string: string): string;
286
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/0.221.0/colors.ts"],"names":[],"mappings":"AAkEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED,4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