vaderjs 1.3.3 → 1.3.4

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.
Files changed (113) hide show
  1. package/create-vader-app/example_proj/dist/vaderjs/index.js +5 -0
  2. package/create-vader-app/example_proj/dist/vaderjs/vader-min.js +1115 -0
  3. package/create-vader-app/example_proj/dist/vaderjs/vaderRouter-min.js +1 -0
  4. package/create-vader-app/example_proj/dist/vaderjs/worker.js +327 -0
  5. package/create-vader-app/example_proj/index.html +20 -0
  6. package/create-vader-app/example_proj/readme.md +2 -0
  7. package/create-vader-app/example_proj/src/pages/Index.js +13 -0
  8. package/create-vader-app/example_proj/src/views/app.html +16 -0
  9. package/create-vader-app/index.js +20 -0
  10. package/create-vader-app/node_modules/.package-lock.json +350 -0
  11. package/create-vader-app/node_modules/chalk/license +9 -0
  12. package/create-vader-app/node_modules/chalk/package.json +83 -0
  13. package/create-vader-app/node_modules/chalk/readme.md +325 -0
  14. package/create-vader-app/node_modules/chalk/source/index.d.ts +320 -0
  15. package/create-vader-app/node_modules/chalk/source/index.js +225 -0
  16. package/create-vader-app/node_modules/chalk/source/utilities.js +33 -0
  17. package/create-vader-app/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  18. package/create-vader-app/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  19. package/create-vader-app/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  20. package/create-vader-app/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
  21. package/create-vader-app/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  22. package/create-vader-app/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  23. package/create-vader-app/node_modules/commander/LICENSE +22 -0
  24. package/create-vader-app/node_modules/commander/Readme.md +1146 -0
  25. package/create-vader-app/node_modules/commander/esm.mjs +16 -0
  26. package/create-vader-app/node_modules/commander/index.js +27 -0
  27. package/create-vader-app/node_modules/commander/lib/argument.js +147 -0
  28. package/create-vader-app/node_modules/commander/lib/command.js +2196 -0
  29. package/create-vader-app/node_modules/commander/lib/error.js +45 -0
  30. package/create-vader-app/node_modules/commander/lib/help.js +464 -0
  31. package/create-vader-app/node_modules/commander/lib/option.js +331 -0
  32. package/create-vader-app/node_modules/commander/lib/suggestSimilar.js +100 -0
  33. package/create-vader-app/node_modules/commander/package-support.json +16 -0
  34. package/create-vader-app/node_modules/commander/package.json +90 -0
  35. package/create-vader-app/node_modules/commander/typings/esm.d.mts +3 -0
  36. package/create-vader-app/node_modules/commander/typings/index.d.ts +889 -0
  37. package/create-vader-app/node_modules/fs-extra/LICENSE +15 -0
  38. package/create-vader-app/node_modules/fs-extra/README.md +292 -0
  39. package/create-vader-app/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
  40. package/create-vader-app/node_modules/fs-extra/lib/copy/copy.js +238 -0
  41. package/create-vader-app/node_modules/fs-extra/lib/copy/index.js +7 -0
  42. package/create-vader-app/node_modules/fs-extra/lib/empty/index.js +39 -0
  43. package/create-vader-app/node_modules/fs-extra/lib/ensure/file.js +69 -0
  44. package/create-vader-app/node_modules/fs-extra/lib/ensure/index.js +23 -0
  45. package/create-vader-app/node_modules/fs-extra/lib/ensure/link.js +64 -0
  46. package/create-vader-app/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  47. package/create-vader-app/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  48. package/create-vader-app/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
  49. package/create-vader-app/node_modules/fs-extra/lib/esm.mjs +68 -0
  50. package/create-vader-app/node_modules/fs-extra/lib/fs/index.js +140 -0
  51. package/create-vader-app/node_modules/fs-extra/lib/index.js +16 -0
  52. package/create-vader-app/node_modules/fs-extra/lib/json/index.js +16 -0
  53. package/create-vader-app/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  54. package/create-vader-app/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  55. package/create-vader-app/node_modules/fs-extra/lib/json/output-json.js +12 -0
  56. package/create-vader-app/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  57. package/create-vader-app/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  58. package/create-vader-app/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  59. package/create-vader-app/node_modules/fs-extra/lib/move/index.js +7 -0
  60. package/create-vader-app/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  61. package/create-vader-app/node_modules/fs-extra/lib/move/move.js +76 -0
  62. package/create-vader-app/node_modules/fs-extra/lib/output-file/index.js +40 -0
  63. package/create-vader-app/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  64. package/create-vader-app/node_modules/fs-extra/lib/remove/index.js +17 -0
  65. package/create-vader-app/node_modules/fs-extra/lib/util/stat.js +154 -0
  66. package/create-vader-app/node_modules/fs-extra/lib/util/utimes.js +26 -0
  67. package/create-vader-app/node_modules/fs-extra/package.json +71 -0
  68. package/create-vader-app/node_modules/graceful-fs/LICENSE +15 -0
  69. package/create-vader-app/node_modules/graceful-fs/README.md +143 -0
  70. package/create-vader-app/node_modules/graceful-fs/clone.js +23 -0
  71. package/create-vader-app/node_modules/graceful-fs/graceful-fs.js +448 -0
  72. package/create-vader-app/node_modules/graceful-fs/legacy-streams.js +118 -0
  73. package/create-vader-app/node_modules/graceful-fs/package.json +53 -0
  74. package/create-vader-app/node_modules/graceful-fs/polyfills.js +355 -0
  75. package/create-vader-app/node_modules/inherits/LICENSE +16 -0
  76. package/create-vader-app/node_modules/inherits/README.md +42 -0
  77. package/create-vader-app/node_modules/inherits/inherits.js +7 -0
  78. package/create-vader-app/node_modules/inherits/inherits_browser.js +23 -0
  79. package/create-vader-app/node_modules/inherits/package.json +29 -0
  80. package/create-vader-app/node_modules/jsonfile/CHANGELOG.md +171 -0
  81. package/create-vader-app/node_modules/jsonfile/LICENSE +15 -0
  82. package/create-vader-app/node_modules/jsonfile/README.md +230 -0
  83. package/create-vader-app/node_modules/jsonfile/index.js +88 -0
  84. package/create-vader-app/node_modules/jsonfile/package.json +40 -0
  85. package/create-vader-app/node_modules/jsonfile/utils.js +14 -0
  86. package/create-vader-app/node_modules/path/LICENSE +18 -0
  87. package/create-vader-app/node_modules/path/README.md +15 -0
  88. package/create-vader-app/node_modules/path/package.json +24 -0
  89. package/create-vader-app/node_modules/path/path.js +628 -0
  90. package/create-vader-app/node_modules/process/.eslintrc +21 -0
  91. package/create-vader-app/node_modules/process/LICENSE +22 -0
  92. package/create-vader-app/node_modules/process/README.md +26 -0
  93. package/create-vader-app/node_modules/process/browser.js +184 -0
  94. package/create-vader-app/node_modules/process/index.js +2 -0
  95. package/create-vader-app/node_modules/process/package.json +27 -0
  96. package/create-vader-app/node_modules/process/test.js +199 -0
  97. package/create-vader-app/node_modules/universalify/LICENSE +20 -0
  98. package/create-vader-app/node_modules/universalify/README.md +76 -0
  99. package/create-vader-app/node_modules/universalify/index.js +24 -0
  100. package/create-vader-app/node_modules/universalify/package.json +34 -0
  101. package/create-vader-app/node_modules/util/LICENSE +18 -0
  102. package/create-vader-app/node_modules/util/README.md +15 -0
  103. package/create-vader-app/node_modules/util/package.json +35 -0
  104. package/create-vader-app/node_modules/util/support/isBuffer.js +3 -0
  105. package/create-vader-app/node_modules/util/support/isBufferBrowser.js +6 -0
  106. package/create-vader-app/node_modules/util/util.js +586 -0
  107. package/create-vader-app/package-lock.json +384 -0
  108. package/create-vader-app/package.json +18 -0
  109. package/package.json +1 -1
  110. package/vader-min.js +1 -1
  111. package/vader.js +4 -4
  112. package/worker-min.js +1 -1
  113. package/worker.js +49 -24
@@ -0,0 +1,325 @@
1
+ <h1 align="center">
2
+ <br>
3
+ <br>
4
+ <img width="320" src="media/logo.svg" alt="Chalk">
5
+ <br>
6
+ <br>
7
+ <br>
8
+ </h1>
9
+
10
+ > Terminal string styling done right
11
+
12
+ [![Coverage Status](https://codecov.io/gh/chalk/chalk/branch/main/graph/badge.svg)](https://codecov.io/gh/chalk/chalk)
13
+ [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents)
14
+ [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk)
15
+ [![run on repl.it](https://img.shields.io/badge/Run_on_Replit-f26207?logo=replit&logoColor=white)](https://repl.it/github/chalk/chalk)
16
+
17
+ ![](media/screenshot.png)
18
+
19
+ <br>
20
+
21
+ ---
22
+
23
+ <div align="center">
24
+ <p>
25
+ <p>
26
+ <sup>
27
+ Sindre Sorhus' open source work is supported by the community on <a href="https://github.com/sponsors/sindresorhus">GitHub Sponsors</a>
28
+ </sup>
29
+ </p>
30
+ <sup>Special thanks to:</sup>
31
+ <br>
32
+ <br>
33
+ <a href="https://standardresume.co/tech">
34
+ <img src="https://sindresorhus.com/assets/thanks/standard-resume-logo.svg" width="160">
35
+ </a>
36
+ <br>
37
+ <br>
38
+ <a href="https://retool.com/?utm_campaign=sindresorhus">
39
+ <img src="https://sindresorhus.com/assets/thanks/retool-logo.svg" width="230">
40
+ </a>
41
+ <br>
42
+ <br>
43
+ <a href="https://strapi.io/?ref=sindresorhus">
44
+ <div>
45
+ <img src="https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png" width="220" alt="Strapi">
46
+ </div>
47
+ <b>Strapi is the leading open-source headless CMS.</b>
48
+ <div>
49
+ <sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>
50
+ </div>
51
+ </a>
52
+ <br>
53
+ <br>
54
+ <a href="https://www.stackaid.us/?utm_campaign=sindre">
55
+ <div>
56
+ <img src="https://sindresorhus.com/assets/thanks/stackaid-logo.png" width="230" alt="StackAid">
57
+ </div>
58
+ <b>Fund your open source dependencies</b>
59
+ </a>
60
+ <br>
61
+ <br>
62
+ </p>
63
+ </div>
64
+
65
+ ---
66
+
67
+ <br>
68
+
69
+ ## Highlights
70
+
71
+ - Expressive API
72
+ - Highly performant
73
+ - No dependencies
74
+ - Ability to nest styles
75
+ - [256/Truecolor color support](#256-and-truecolor-color-support)
76
+ - Auto-detects color support
77
+ - Doesn't extend `String.prototype`
78
+ - Clean and focused
79
+ - Actively maintained
80
+ - [Used by ~86,000 packages](https://www.npmjs.com/browse/depended/chalk) as of October 4, 2022
81
+
82
+ ## Install
83
+
84
+ ```sh
85
+ npm install chalk
86
+ ```
87
+
88
+ **IMPORTANT:** Chalk 5 is ESM. If you want to use Chalk with TypeScript or a build tool, you will probably want to use Chalk 4 for now. [Read more.](https://github.com/chalk/chalk/releases/tag/v5.0.0)
89
+
90
+ ## Usage
91
+
92
+ ```js
93
+ import chalk from 'chalk';
94
+
95
+ console.log(chalk.blue('Hello world!'));
96
+ ```
97
+
98
+ Chalk comes with an easy to use composable API where you just chain and nest the styles you want.
99
+
100
+ ```js
101
+ import chalk from 'chalk';
102
+
103
+ const log = console.log;
104
+
105
+ // Combine styled and normal strings
106
+ log(chalk.blue('Hello') + ' World' + chalk.red('!'));
107
+
108
+ // Compose multiple styles using the chainable API
109
+ log(chalk.blue.bgRed.bold('Hello world!'));
110
+
111
+ // Pass in multiple arguments
112
+ log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'));
113
+
114
+ // Nest styles
115
+ log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!'));
116
+
117
+ // Nest styles of the same type even (color, underline, background)
118
+ log(chalk.green(
119
+ 'I am a green line ' +
120
+ chalk.blue.underline.bold('with a blue substring') +
121
+ ' that becomes green again!'
122
+ ));
123
+
124
+ // ES2015 template literal
125
+ log(`
126
+ CPU: ${chalk.red('90%')}
127
+ RAM: ${chalk.green('40%')}
128
+ DISK: ${chalk.yellow('70%')}
129
+ `);
130
+
131
+ // Use RGB colors in terminal emulators that support it.
132
+ log(chalk.rgb(123, 45, 67).underline('Underlined reddish color'));
133
+ log(chalk.hex('#DEADED').bold('Bold gray!'));
134
+ ```
135
+
136
+ Easily define your own themes:
137
+
138
+ ```js
139
+ import chalk from 'chalk';
140
+
141
+ const error = chalk.bold.red;
142
+ const warning = chalk.hex('#FFA500'); // Orange color
143
+
144
+ console.log(error('Error!'));
145
+ console.log(warning('Warning!'));
146
+ ```
147
+
148
+ Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args):
149
+
150
+ ```js
151
+ import chalk from 'chalk';
152
+
153
+ const name = 'Sindre';
154
+ console.log(chalk.green('Hello %s'), name);
155
+ //=> 'Hello Sindre'
156
+ ```
157
+
158
+ ## API
159
+
160
+ ### chalk.`<style>[.<style>...](string, [string...])`
161
+
162
+ Example: `chalk.red.bold.underline('Hello', 'world');`
163
+
164
+ Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
165
+
166
+ Multiple arguments will be separated by space.
167
+
168
+ ### chalk.level
169
+
170
+ Specifies the level of color support.
171
+
172
+ Color support is automatically detected, but you can override it by setting the `level` property. You should however only do this in your own code as it applies globally to all Chalk consumers.
173
+
174
+ If you need to change this in a reusable module, create a new instance:
175
+
176
+ ```js
177
+ import {Chalk} from 'chalk';
178
+
179
+ const customChalk = new Chalk({level: 0});
180
+ ```
181
+
182
+ | Level | Description |
183
+ | :---: | :--- |
184
+ | `0` | All colors disabled |
185
+ | `1` | Basic color support (16 colors) |
186
+ | `2` | 256 color support |
187
+ | `3` | Truecolor support (16 million colors) |
188
+
189
+ ### supportsColor
190
+
191
+ Detect whether the terminal [supports color](https://github.com/chalk/supports-color). Used internally and handled for you, but exposed for convenience.
192
+
193
+ Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
194
+
195
+ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
196
+
197
+ ### chalkStderr and supportsColorStderr
198
+
199
+ `chalkStderr` contains a separate instance configured with color support detected for `stderr` stream instead of `stdout`. Override rules from `supportsColor` apply to this too. `supportsColorStderr` is exposed for convenience.
200
+
201
+ ### modifierNames, foregroundColorNames, backgroundColorNames, and colorNames
202
+
203
+ All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
204
+
205
+ This can be useful if you wrap Chalk and need to validate input:
206
+
207
+ ```js
208
+ import {modifierNames, foregroundColorNames} from 'chalk';
209
+
210
+ console.log(modifierNames.includes('bold'));
211
+ //=> true
212
+
213
+ console.log(foregroundColorNames.includes('pink'));
214
+ //=> false
215
+ ```
216
+
217
+ ## Styles
218
+
219
+ ### Modifiers
220
+
221
+ - `reset` - Reset the current style.
222
+ - `bold` - Make the text bold.
223
+ - `dim` - Make the text have lower opacity.
224
+ - `italic` - Make the text italic. *(Not widely supported)*
225
+ - `underline` - Put a horizontal line below the text. *(Not widely supported)*
226
+ - `overline` - Put a horizontal line above the text. *(Not widely supported)*
227
+ - `inverse`- Invert background and foreground colors.
228
+ - `hidden` - Print the text but make it invisible.
229
+ - `strikethrough` - Puts a horizontal line through the center of the text. *(Not widely supported)*
230
+ - `visible`- Print the text only when Chalk has a color level above zero. Can be useful for things that are purely cosmetic.
231
+
232
+ ### Colors
233
+
234
+ - `black`
235
+ - `red`
236
+ - `green`
237
+ - `yellow`
238
+ - `blue`
239
+ - `magenta`
240
+ - `cyan`
241
+ - `white`
242
+ - `blackBright` (alias: `gray`, `grey`)
243
+ - `redBright`
244
+ - `greenBright`
245
+ - `yellowBright`
246
+ - `blueBright`
247
+ - `magentaBright`
248
+ - `cyanBright`
249
+ - `whiteBright`
250
+
251
+ ### Background colors
252
+
253
+ - `bgBlack`
254
+ - `bgRed`
255
+ - `bgGreen`
256
+ - `bgYellow`
257
+ - `bgBlue`
258
+ - `bgMagenta`
259
+ - `bgCyan`
260
+ - `bgWhite`
261
+ - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
262
+ - `bgRedBright`
263
+ - `bgGreenBright`
264
+ - `bgYellowBright`
265
+ - `bgBlueBright`
266
+ - `bgMagentaBright`
267
+ - `bgCyanBright`
268
+ - `bgWhiteBright`
269
+
270
+ ## 256 and Truecolor color support
271
+
272
+ Chalk supports 256 colors and [Truecolor](https://github.com/termstandard/colors) (16 million colors) on supported terminal apps.
273
+
274
+ Colors are downsampled from 16 million RGB values to an ANSI color format that is supported by the terminal emulator (or by specifying `{level: n}` as a Chalk option). For example, Chalk configured to run at level 1 (basic color support) will downsample an RGB value of #FF0000 (red) to 31 (ANSI escape for red).
275
+
276
+ Examples:
277
+
278
+ - `chalk.hex('#DEADED').underline('Hello, world!')`
279
+ - `chalk.rgb(15, 100, 204).inverse('Hello!')`
280
+
281
+ Background versions of these models are prefixed with `bg` and the first level of the module capitalized (e.g. `hex` for foreground colors and `bgHex` for background colors).
282
+
283
+ - `chalk.bgHex('#DEADED').underline('Hello, world!')`
284
+ - `chalk.bgRgb(15, 100, 204).inverse('Hello!')`
285
+
286
+ The following color models can be used:
287
+
288
+ - [`rgb`](https://en.wikipedia.org/wiki/RGB_color_model) - Example: `chalk.rgb(255, 136, 0).bold('Orange!')`
289
+ - [`hex`](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet) - Example: `chalk.hex('#FF8800').bold('Orange!')`
290
+ - [`ansi256`](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) - Example: `chalk.bgAnsi256(194)('Honeydew, more or less')`
291
+
292
+ ## Browser support
293
+
294
+ Since Chrome 69, ANSI escape codes are natively supported in the developer console.
295
+
296
+ ## Windows
297
+
298
+ If you're on Windows, do yourself a favor and use [Windows Terminal](https://github.com/microsoft/terminal) instead of `cmd.exe`.
299
+
300
+ ## Origin story
301
+
302
+ [colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68) and the package is unmaintained. Although there are other packages, they either do too much or not enough. Chalk is a clean and focused alternative.
303
+
304
+ ## Related
305
+
306
+ - [chalk-template](https://github.com/chalk/chalk-template) - [Tagged template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates) support for this module
307
+ - [chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
308
+ - [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
309
+ - [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
310
+ - [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
311
+ - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Strip ANSI escape codes from a stream
312
+ - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
313
+ - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
314
+ - [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
315
+ - [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
316
+ - [color-convert](https://github.com/qix-/color-convert) - Converts colors between different models
317
+ - [chalk-animation](https://github.com/bokub/chalk-animation) - Animate strings in the terminal
318
+ - [gradient-string](https://github.com/bokub/gradient-string) - Apply color gradients to strings
319
+ - [chalk-pipe](https://github.com/LitoMore/chalk-pipe) - Create chalk style schemes with simpler style strings
320
+ - [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal
321
+
322
+ ## Maintainers
323
+
324
+ - [Sindre Sorhus](https://github.com/sindresorhus)
325
+ - [Josh Junon](https://github.com/qix-)
@@ -0,0 +1,320 @@
1
+ // TODO: Make it this when TS suports that.
2
+ // import {ModifierName, ForegroundColor, BackgroundColor, ColorName} from '#ansi-styles';
3
+ // import {ColorInfo, ColorSupportLevel} from '#supports-color';
4
+ import {ModifierName, ForegroundColorName, BackgroundColorName, ColorName} from './vendor/ansi-styles/index.js';
5
+ import {ColorInfo, ColorSupportLevel} from './vendor/supports-color/index.js';
6
+
7
+ export interface Options {
8
+ /**
9
+ Specify the color support for Chalk.
10
+
11
+ By default, color support is automatically detected based on the environment.
12
+
13
+ Levels:
14
+ - `0` - All colors disabled.
15
+ - `1` - Basic 16 colors support.
16
+ - `2` - ANSI 256 colors support.
17
+ - `3` - Truecolor 16 million colors support.
18
+ */
19
+ readonly level?: ColorSupportLevel;
20
+ }
21
+
22
+ /**
23
+ Return a new Chalk instance.
24
+ */
25
+ export const Chalk: new (options?: Options) => ChalkInstance; // eslint-disable-line @typescript-eslint/naming-convention
26
+
27
+ export interface ChalkInstance {
28
+ (...text: unknown[]): string;
29
+
30
+ /**
31
+ The color support for Chalk.
32
+
33
+ By default, color support is automatically detected based on the environment.
34
+
35
+ Levels:
36
+ - `0` - All colors disabled.
37
+ - `1` - Basic 16 colors support.
38
+ - `2` - ANSI 256 colors support.
39
+ - `3` - Truecolor 16 million colors support.
40
+ */
41
+ level: ColorSupportLevel;
42
+
43
+ /**
44
+ Use RGB values to set text color.
45
+
46
+ @example
47
+ ```
48
+ import chalk from 'chalk';
49
+
50
+ chalk.rgb(222, 173, 237);
51
+ ```
52
+ */
53
+ rgb: (red: number, green: number, blue: number) => this;
54
+
55
+ /**
56
+ Use HEX value to set text color.
57
+
58
+ @param color - Hexadecimal value representing the desired color.
59
+
60
+ @example
61
+ ```
62
+ import chalk from 'chalk';
63
+
64
+ chalk.hex('#DEADED');
65
+ ```
66
+ */
67
+ hex: (color: string) => this;
68
+
69
+ /**
70
+ Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
71
+
72
+ @example
73
+ ```
74
+ import chalk from 'chalk';
75
+
76
+ chalk.ansi256(201);
77
+ ```
78
+ */
79
+ ansi256: (index: number) => this;
80
+
81
+ /**
82
+ Use RGB values to set background color.
83
+
84
+ @example
85
+ ```
86
+ import chalk from 'chalk';
87
+
88
+ chalk.bgRgb(222, 173, 237);
89
+ ```
90
+ */
91
+ bgRgb: (red: number, green: number, blue: number) => this;
92
+
93
+ /**
94
+ Use HEX value to set background color.
95
+
96
+ @param color - Hexadecimal value representing the desired color.
97
+
98
+ @example
99
+ ```
100
+ import chalk from 'chalk';
101
+
102
+ chalk.bgHex('#DEADED');
103
+ ```
104
+ */
105
+ bgHex: (color: string) => this;
106
+
107
+ /**
108
+ Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
109
+
110
+ @example
111
+ ```
112
+ import chalk from 'chalk';
113
+
114
+ chalk.bgAnsi256(201);
115
+ ```
116
+ */
117
+ bgAnsi256: (index: number) => this;
118
+
119
+ /**
120
+ Modifier: Reset the current style.
121
+ */
122
+ readonly reset: this;
123
+
124
+ /**
125
+ Modifier: Make the text bold.
126
+ */
127
+ readonly bold: this;
128
+
129
+ /**
130
+ Modifier: Make the text have lower opacity.
131
+ */
132
+ readonly dim: this;
133
+
134
+ /**
135
+ Modifier: Make the text italic. *(Not widely supported)*
136
+ */
137
+ readonly italic: this;
138
+
139
+ /**
140
+ Modifier: Put a horizontal line below the text. *(Not widely supported)*
141
+ */
142
+ readonly underline: this;
143
+
144
+ /**
145
+ Modifier: Put a horizontal line above the text. *(Not widely supported)*
146
+ */
147
+ readonly overline: this;
148
+
149
+ /**
150
+ Modifier: Invert background and foreground colors.
151
+ */
152
+ readonly inverse: this;
153
+
154
+ /**
155
+ Modifier: Print the text but make it invisible.
156
+ */
157
+ readonly hidden: this;
158
+
159
+ /**
160
+ Modifier: Puts a horizontal line through the center of the text. *(Not widely supported)*
161
+ */
162
+ readonly strikethrough: this;
163
+
164
+ /**
165
+ Modifier: Print the text only when Chalk has a color level above zero.
166
+
167
+ Can be useful for things that are purely cosmetic.
168
+ */
169
+ readonly visible: this;
170
+
171
+ readonly black: this;
172
+ readonly red: this;
173
+ readonly green: this;
174
+ readonly yellow: this;
175
+ readonly blue: this;
176
+ readonly magenta: this;
177
+ readonly cyan: this;
178
+ readonly white: this;
179
+
180
+ /*
181
+ Alias for `blackBright`.
182
+ */
183
+ readonly gray: this;
184
+
185
+ /*
186
+ Alias for `blackBright`.
187
+ */
188
+ readonly grey: this;
189
+
190
+ readonly blackBright: this;
191
+ readonly redBright: this;
192
+ readonly greenBright: this;
193
+ readonly yellowBright: this;
194
+ readonly blueBright: this;
195
+ readonly magentaBright: this;
196
+ readonly cyanBright: this;
197
+ readonly whiteBright: this;
198
+
199
+ readonly bgBlack: this;
200
+ readonly bgRed: this;
201
+ readonly bgGreen: this;
202
+ readonly bgYellow: this;
203
+ readonly bgBlue: this;
204
+ readonly bgMagenta: this;
205
+ readonly bgCyan: this;
206
+ readonly bgWhite: this;
207
+
208
+ /*
209
+ Alias for `bgBlackBright`.
210
+ */
211
+ readonly bgGray: this;
212
+
213
+ /*
214
+ Alias for `bgBlackBright`.
215
+ */
216
+ readonly bgGrey: this;
217
+
218
+ readonly bgBlackBright: this;
219
+ readonly bgRedBright: this;
220
+ readonly bgGreenBright: this;
221
+ readonly bgYellowBright: this;
222
+ readonly bgBlueBright: this;
223
+ readonly bgMagentaBright: this;
224
+ readonly bgCyanBright: this;
225
+ readonly bgWhiteBright: this;
226
+ }
227
+
228
+ /**
229
+ Main Chalk object that allows to chain styles together.
230
+
231
+ Call the last one as a method with a string argument.
232
+
233
+ Order doesn't matter, and later styles take precedent in case of a conflict.
234
+
235
+ This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
236
+ */
237
+ declare const chalk: ChalkInstance;
238
+
239
+ export const supportsColor: ColorInfo;
240
+
241
+ export const chalkStderr: typeof chalk;
242
+ export const supportsColorStderr: typeof supportsColor;
243
+
244
+ export {
245
+ ModifierName, ForegroundColorName, BackgroundColorName, ColorName,
246
+ modifierNames, foregroundColorNames, backgroundColorNames, colorNames,
247
+ // } from '#ansi-styles';
248
+ } from './vendor/ansi-styles/index.js';
249
+
250
+ export {
251
+ ColorInfo,
252
+ ColorSupport,
253
+ ColorSupportLevel,
254
+ // } from '#supports-color';
255
+ } from './vendor/supports-color/index.js';
256
+
257
+ // TODO: Remove these aliases in the next major version
258
+ /**
259
+ @deprecated Use `ModifierName` instead.
260
+
261
+ Basic modifier names.
262
+ */
263
+ export type Modifiers = ModifierName;
264
+
265
+ /**
266
+ @deprecated Use `ForegroundColorName` instead.
267
+
268
+ Basic foreground color names.
269
+
270
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
271
+ */
272
+ export type ForegroundColor = ForegroundColorName;
273
+
274
+ /**
275
+ @deprecated Use `BackgroundColorName` instead.
276
+
277
+ Basic background color names.
278
+
279
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
280
+ */
281
+ export type BackgroundColor = BackgroundColorName;
282
+
283
+ /**
284
+ @deprecated Use `ColorName` instead.
285
+
286
+ Basic color names. The combination of foreground and background color names.
287
+
288
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
289
+ */
290
+ export type Color = ColorName;
291
+
292
+ /**
293
+ @deprecated Use `modifierNames` instead.
294
+
295
+ Basic modifier names.
296
+ */
297
+ export const modifiers: readonly Modifiers[];
298
+
299
+ /**
300
+ @deprecated Use `foregroundColorNames` instead.
301
+
302
+ Basic foreground color names.
303
+ */
304
+ export const foregroundColors: readonly ForegroundColor[];
305
+
306
+ /**
307
+ @deprecated Use `backgroundColorNames` instead.
308
+
309
+ Basic background color names.
310
+ */
311
+ export const backgroundColors: readonly BackgroundColor[];
312
+
313
+ /**
314
+ @deprecated Use `colorNames` instead.
315
+
316
+ Basic color names. The combination of foreground and background color names.
317
+ */
318
+ export const colors: readonly Color[];
319
+
320
+ export default chalk;