@bleedingdev/modern-js-utils 3.2.0-ultramodern.0 → 3.2.0-ultramodern.10

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 (238) hide show
  1. package/dist/types/cli/alias.d.ts +2 -2
  2. package/dist/types/cli/get/data.d.ts +1 -1
  3. package/dist/types/cli/prettyInstructions.d.ts +1 -4
  4. package/dist/types/cli/watch.d.ts +1 -1
  5. package/package.json +3 -3
  6. package/dist/compiled/address/index.js +0 -171
  7. package/dist/compiled/address/lib/address.d.ts +0 -28
  8. package/dist/compiled/address/package.json +0 -1
  9. package/dist/compiled/browserslist/index.d.ts +0 -178
  10. package/dist/compiled/browserslist/index.js +0 -1329
  11. package/dist/compiled/browserslist/license +0 -20
  12. package/dist/compiled/browserslist/package.json +0 -1
  13. package/dist/compiled/chalk/index.d.ts +0 -415
  14. package/dist/compiled/chalk/index.js +0 -2368
  15. package/dist/compiled/chalk/license +0 -9
  16. package/dist/compiled/chalk/package.json +0 -1
  17. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  18. package/dist/compiled/chokidar/fsevents.node +0 -0
  19. package/dist/compiled/chokidar/index.js +0 -4162
  20. package/dist/compiled/chokidar/index.js.LICENSE.txt +0 -41
  21. package/dist/compiled/chokidar/license +0 -21
  22. package/dist/compiled/chokidar/package.json +0 -1
  23. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  24. package/dist/compiled/commander/index.js +0 -1540
  25. package/dist/compiled/commander/index.mjs +0 -2
  26. package/dist/compiled/commander/license +0 -22
  27. package/dist/compiled/commander/package.json +0 -1
  28. package/dist/compiled/commander/typings/index.d.ts +0 -890
  29. package/dist/compiled/debug/index.d.ts +0 -54
  30. package/dist/compiled/debug/index.js +0 -621
  31. package/dist/compiled/debug/license +0 -20
  32. package/dist/compiled/debug/ms/index.d.ts +0 -25
  33. package/dist/compiled/debug/package.json +0 -1
  34. package/dist/compiled/dotenv/index.js +0 -101
  35. package/dist/compiled/dotenv/license +0 -23
  36. package/dist/compiled/dotenv/package.json +0 -1
  37. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  38. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  39. package/dist/compiled/dotenv-expand/index.js +0 -54
  40. package/dist/compiled/dotenv-expand/license +0 -24
  41. package/dist/compiled/dotenv-expand/package.json +0 -1
  42. package/dist/compiled/execa/index.d.ts +0 -564
  43. package/dist/compiled/execa/index.js +0 -1738
  44. package/dist/compiled/execa/license +0 -9
  45. package/dist/compiled/execa/package.json +0 -1
  46. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  47. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  48. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  49. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  50. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  51. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  52. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  53. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  54. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  55. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  56. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  57. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  58. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  59. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  60. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  61. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  62. package/dist/compiled/fast-glob/index.js +0 -4665
  63. package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
  64. package/dist/compiled/fast-glob/license +0 -21
  65. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  66. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  67. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  68. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  69. package/dist/compiled/fast-glob/package.json +0 -1
  70. package/dist/compiled/filesize/filesize.d.ts +0 -131
  71. package/dist/compiled/filesize/index.js +0 -198
  72. package/dist/compiled/filesize/index.js.LICENSE.txt +0 -7
  73. package/dist/compiled/filesize/license +0 -28
  74. package/dist/compiled/filesize/package.json +0 -1
  75. package/dist/compiled/fs-extra/index.d.ts +0 -563
  76. package/dist/compiled/fs-extra/index.js +0 -2222
  77. package/dist/compiled/fs-extra/license +0 -15
  78. package/dist/compiled/fs-extra/package.json +0 -1
  79. package/dist/compiled/glob/index.d.ts +0 -91
  80. package/dist/compiled/glob/index.js +0 -2011
  81. package/dist/compiled/glob/license +0 -21
  82. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  83. package/dist/compiled/glob/package.json +0 -1
  84. package/dist/compiled/globby/index.d.ts +0 -186
  85. package/dist/compiled/globby/index.js +0 -690
  86. package/dist/compiled/globby/license +0 -9
  87. package/dist/compiled/globby/package.json +0 -1
  88. package/dist/compiled/gzip-size/index.d.ts +0 -96
  89. package/dist/compiled/gzip-size/index.js +0 -157
  90. package/dist/compiled/gzip-size/license +0 -9
  91. package/dist/compiled/gzip-size/package.json +0 -1
  92. package/dist/compiled/import-lazy/index.d.ts +0 -26
  93. package/dist/compiled/import-lazy/index.js +0 -45
  94. package/dist/compiled/import-lazy/license +0 -9
  95. package/dist/compiled/import-lazy/package.json +0 -1
  96. package/dist/compiled/inquirer/index.d.ts +0 -997
  97. package/dist/compiled/inquirer/index.js +0 -20167
  98. package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
  99. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  100. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  101. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  102. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  103. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  104. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  105. package/dist/compiled/inquirer/license +0 -22
  106. package/dist/compiled/inquirer/package.json +0 -1
  107. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  108. package/dist/compiled/js-yaml/index.d.ts +0 -154
  109. package/dist/compiled/js-yaml/index.js +0 -2191
  110. package/dist/compiled/js-yaml/index.mjs +0 -2167
  111. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +0 -1
  112. package/dist/compiled/js-yaml/license +0 -21
  113. package/dist/compiled/js-yaml/package.json +0 -1
  114. package/dist/compiled/json5/index.js +0 -983
  115. package/dist/compiled/json5/lib/index.d.ts +0 -4
  116. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  117. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  118. package/dist/compiled/json5/package.json +0 -1
  119. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  120. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  121. package/dist/compiled/lodash/common/common.d.ts +0 -280
  122. package/dist/compiled/lodash/common/date.d.ts +0 -23
  123. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  124. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  125. package/dist/compiled/lodash/common/math.d.ts +0 -405
  126. package/dist/compiled/lodash/common/number.d.ts +0 -131
  127. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  128. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  129. package/dist/compiled/lodash/common/string.d.ts +0 -788
  130. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  131. package/dist/compiled/lodash/index.d.ts +0 -46
  132. package/dist/compiled/lodash/index.js +0 -1
  133. package/dist/compiled/lodash/index.mjs +0 -1
  134. package/dist/compiled/lodash/license +0 -47
  135. package/dist/compiled/lodash/package.json +0 -1
  136. package/dist/compiled/mime-types/index.d.ts +0 -14
  137. package/dist/compiled/mime-types/index.js +0 -116
  138. package/dist/compiled/mime-types/index.js.LICENSE.txt +0 -13
  139. package/dist/compiled/mime-types/license +0 -23
  140. package/dist/compiled/mime-types/package.json +0 -1
  141. package/dist/compiled/minimist/index.d.ts +0 -95
  142. package/dist/compiled/minimist/index.js +0 -202
  143. package/dist/compiled/minimist/license +0 -18
  144. package/dist/compiled/minimist/package.json +0 -1
  145. package/dist/compiled/nanoid/index.d.ts +0 -91
  146. package/dist/compiled/nanoid/index.js +0 -83
  147. package/dist/compiled/nanoid/index.mjs +0 -69
  148. package/dist/compiled/nanoid/license +0 -20
  149. package/dist/compiled/nanoid/package.json +0 -1
  150. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  151. package/dist/compiled/ora/index.d.ts +0 -277
  152. package/dist/compiled/ora/index.js +0 -3936
  153. package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
  154. package/dist/compiled/ora/license +0 -9
  155. package/dist/compiled/ora/package.json +0 -1
  156. package/dist/compiled/pkg-up/index.d.ts +0 -48
  157. package/dist/compiled/pkg-up/index.js +0 -15
  158. package/dist/compiled/pkg-up/license +0 -9
  159. package/dist/compiled/pkg-up/package.json +0 -1
  160. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  161. package/dist/compiled/semver/classes/range.d.ts +0 -21
  162. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  163. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  164. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  165. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  166. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  167. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  168. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  169. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  170. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  171. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  172. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  173. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  174. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  175. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  176. package/dist/compiled/semver/functions/major.d.ts +0 -9
  177. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  178. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  179. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  180. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  181. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  182. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  183. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  184. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  185. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  186. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  187. package/dist/compiled/semver/index.d.ts +0 -133
  188. package/dist/compiled/semver/index.js +0 -1779
  189. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  190. package/dist/compiled/semver/license +0 -15
  191. package/dist/compiled/semver/package.json +0 -1
  192. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  193. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  194. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  195. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  196. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  197. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  198. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  199. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  200. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  201. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  202. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  203. package/dist/compiled/signale/index.d.ts +0 -162
  204. package/dist/compiled/signale/index.js +0 -1704
  205. package/dist/compiled/signale/package.json +0 -1
  206. package/dist/compiled/slash/index.d.ts +0 -25
  207. package/dist/compiled/slash/index.js +0 -32
  208. package/dist/compiled/slash/license +0 -9
  209. package/dist/compiled/slash/package.json +0 -1
  210. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  211. package/dist/compiled/strip-ansi/index.js +0 -34
  212. package/dist/compiled/strip-ansi/license +0 -9
  213. package/dist/compiled/strip-ansi/package.json +0 -1
  214. package/dist/compiled/tsconfig-paths/index.js +0 -629
  215. package/dist/compiled/tsconfig-paths/index.mjs +0 -2
  216. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  217. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  218. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  219. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  220. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  221. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  222. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  223. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  224. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  225. package/dist/compiled/tsconfig-paths/license +0 -21
  226. package/dist/compiled/tsconfig-paths/package.json +0 -1
  227. package/dist/compiled/upath/index.js +0 -135
  228. package/dist/compiled/upath/license +0 -22
  229. package/dist/compiled/upath/package.json +0 -1
  230. package/dist/compiled/upath/upath.d.ts +0 -241
  231. package/dist/compiled/url-join/index.d.ts +0 -17
  232. package/dist/compiled/url-join/index.js +0 -61
  233. package/dist/compiled/url-join/license +0 -21
  234. package/dist/compiled/url-join/package.json +0 -1
  235. package/dist/compiled/webpack-chain/index.js +0 -1475
  236. package/dist/compiled/webpack-chain/license +0 -373
  237. package/dist/compiled/webpack-chain/package.json +0 -1
  238. package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright 2014 Andrey Sitnik <andrey@sitnik.ru> and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1 +0,0 @@
1
- {"name":"browserslist","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"4.20.2","funding":[{"type":"opencollective","url":"https://opencollective.com/browserslist"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/browserslist"}],"license":"MIT","types":"./index.d.ts"}
@@ -1,415 +0,0 @@
1
- /**
2
- Basic foreground colors.
3
-
4
- [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
5
- */
6
- declare type ForegroundColor =
7
- | 'black'
8
- | 'red'
9
- | 'green'
10
- | 'yellow'
11
- | 'blue'
12
- | 'magenta'
13
- | 'cyan'
14
- | 'white'
15
- | 'gray'
16
- | 'grey'
17
- | 'blackBright'
18
- | 'redBright'
19
- | 'greenBright'
20
- | 'yellowBright'
21
- | 'blueBright'
22
- | 'magentaBright'
23
- | 'cyanBright'
24
- | 'whiteBright';
25
-
26
- /**
27
- Basic background colors.
28
-
29
- [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
30
- */
31
- declare type BackgroundColor =
32
- | 'bgBlack'
33
- | 'bgRed'
34
- | 'bgGreen'
35
- | 'bgYellow'
36
- | 'bgBlue'
37
- | 'bgMagenta'
38
- | 'bgCyan'
39
- | 'bgWhite'
40
- | 'bgGray'
41
- | 'bgGrey'
42
- | 'bgBlackBright'
43
- | 'bgRedBright'
44
- | 'bgGreenBright'
45
- | 'bgYellowBright'
46
- | 'bgBlueBright'
47
- | 'bgMagentaBright'
48
- | 'bgCyanBright'
49
- | 'bgWhiteBright';
50
-
51
- /**
52
- Basic colors.
53
-
54
- [More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
55
- */
56
- declare type Color = ForegroundColor | BackgroundColor;
57
-
58
- declare type Modifiers =
59
- | 'reset'
60
- | 'bold'
61
- | 'dim'
62
- | 'italic'
63
- | 'underline'
64
- | 'inverse'
65
- | 'hidden'
66
- | 'strikethrough'
67
- | 'visible';
68
-
69
- declare namespace chalk {
70
- /**
71
- Levels:
72
- - `0` - All colors disabled.
73
- - `1` - Basic 16 colors support.
74
- - `2` - ANSI 256 colors support.
75
- - `3` - Truecolor 16 million colors support.
76
- */
77
- type Level = 0 | 1 | 2 | 3;
78
-
79
- interface Options {
80
- /**
81
- Specify the color support for Chalk.
82
-
83
- By default, color support is automatically detected based on the environment.
84
-
85
- Levels:
86
- - `0` - All colors disabled.
87
- - `1` - Basic 16 colors support.
88
- - `2` - ANSI 256 colors support.
89
- - `3` - Truecolor 16 million colors support.
90
- */
91
- level?: Level;
92
- }
93
-
94
- /**
95
- Return a new Chalk instance.
96
- */
97
- type Instance = new (options?: Options) => Chalk;
98
-
99
- /**
100
- Detect whether the terminal supports color.
101
- */
102
- interface ColorSupport {
103
- /**
104
- The color level used by Chalk.
105
- */
106
- level: Level;
107
-
108
- /**
109
- Return whether Chalk supports basic 16 colors.
110
- */
111
- hasBasic: boolean;
112
-
113
- /**
114
- Return whether Chalk supports ANSI 256 colors.
115
- */
116
- has256: boolean;
117
-
118
- /**
119
- Return whether Chalk supports Truecolor 16 million colors.
120
- */
121
- has16m: boolean;
122
- }
123
-
124
- interface ChalkFunction {
125
- /**
126
- Use a template string.
127
-
128
- @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341))
129
-
130
- @example
131
- ```
132
- import chalk = require('./chalk');
133
-
134
- log(chalk`
135
- CPU: {red ${cpu.totalPercent}%}
136
- RAM: {green ${ram.used / ram.total * 100}%}
137
- DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
138
- `);
139
- ```
140
-
141
- @example
142
- ```
143
- import chalk = require('./chalk');
144
-
145
- log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`)
146
- ```
147
- */
148
- (text: TemplateStringsArray, ...placeholders: unknown[]): string;
149
-
150
- (...text: unknown[]): string;
151
- }
152
-
153
- interface Chalk extends ChalkFunction {
154
- /**
155
- Return a new Chalk instance.
156
- */
157
- Instance: Instance;
158
-
159
- /**
160
- The color support for Chalk.
161
-
162
- By default, color support is automatically detected based on the environment.
163
-
164
- Levels:
165
- - `0` - All colors disabled.
166
- - `1` - Basic 16 colors support.
167
- - `2` - ANSI 256 colors support.
168
- - `3` - Truecolor 16 million colors support.
169
- */
170
- level: Level;
171
-
172
- /**
173
- Use HEX value to set text color.
174
-
175
- @param color - Hexadecimal value representing the desired color.
176
-
177
- @example
178
- ```
179
- import chalk = require('./chalk');
180
-
181
- chalk.hex('#DEADED');
182
- ```
183
- */
184
- hex(color: string): Chalk;
185
-
186
- /**
187
- Use keyword color value to set text color.
188
-
189
- @param color - Keyword value representing the desired color.
190
-
191
- @example
192
- ```
193
- import chalk = require('./chalk');
194
-
195
- chalk.keyword('orange');
196
- ```
197
- */
198
- keyword(color: string): Chalk;
199
-
200
- /**
201
- Use RGB values to set text color.
202
- */
203
- rgb(red: number, green: number, blue: number): Chalk;
204
-
205
- /**
206
- Use HSL values to set text color.
207
- */
208
- hsl(hue: number, saturation: number, lightness: number): Chalk;
209
-
210
- /**
211
- Use HSV values to set text color.
212
- */
213
- hsv(hue: number, saturation: number, value: number): Chalk;
214
-
215
- /**
216
- Use HWB values to set text color.
217
- */
218
- hwb(hue: number, whiteness: number, blackness: number): Chalk;
219
-
220
- /**
221
- Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color.
222
-
223
- 30 <= code && code < 38 || 90 <= code && code < 98
224
- For example, 31 for red, 91 for redBright.
225
- */
226
- ansi(code: number): Chalk;
227
-
228
- /**
229
- Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
230
- */
231
- ansi256(index: number): Chalk;
232
-
233
- /**
234
- Use HEX value to set background color.
235
-
236
- @param color - Hexadecimal value representing the desired color.
237
-
238
- @example
239
- ```
240
- import chalk = require('./chalk');
241
-
242
- chalk.bgHex('#DEADED');
243
- ```
244
- */
245
- bgHex(color: string): Chalk;
246
-
247
- /**
248
- Use keyword color value to set background color.
249
-
250
- @param color - Keyword value representing the desired color.
251
-
252
- @example
253
- ```
254
- import chalk = require('./chalk');
255
-
256
- chalk.bgKeyword('orange');
257
- ```
258
- */
259
- bgKeyword(color: string): Chalk;
260
-
261
- /**
262
- Use RGB values to set background color.
263
- */
264
- bgRgb(red: number, green: number, blue: number): Chalk;
265
-
266
- /**
267
- Use HSL values to set background color.
268
- */
269
- bgHsl(hue: number, saturation: number, lightness: number): Chalk;
270
-
271
- /**
272
- Use HSV values to set background color.
273
- */
274
- bgHsv(hue: number, saturation: number, value: number): Chalk;
275
-
276
- /**
277
- Use HWB values to set background color.
278
- */
279
- bgHwb(hue: number, whiteness: number, blackness: number): Chalk;
280
-
281
- /**
282
- Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color.
283
-
284
- 30 <= code && code < 38 || 90 <= code && code < 98
285
- For example, 31 for red, 91 for redBright.
286
- Use the foreground code, not the background code (for example, not 41, nor 101).
287
- */
288
- bgAnsi(code: number): Chalk;
289
-
290
- /**
291
- Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
292
- */
293
- bgAnsi256(index: number): Chalk;
294
-
295
- /**
296
- Modifier: Resets the current color chain.
297
- */
298
- readonly reset: Chalk;
299
-
300
- /**
301
- Modifier: Make text bold.
302
- */
303
- readonly bold: Chalk;
304
-
305
- /**
306
- Modifier: Emitting only a small amount of light.
307
- */
308
- readonly dim: Chalk;
309
-
310
- /**
311
- Modifier: Make text italic. (Not widely supported)
312
- */
313
- readonly italic: Chalk;
314
-
315
- /**
316
- Modifier: Make text underline. (Not widely supported)
317
- */
318
- readonly underline: Chalk;
319
-
320
- /**
321
- Modifier: Inverse background and foreground colors.
322
- */
323
- readonly inverse: Chalk;
324
-
325
- /**
326
- Modifier: Prints the text, but makes it invisible.
327
- */
328
- readonly hidden: Chalk;
329
-
330
- /**
331
- Modifier: Puts a horizontal line through the center of the text. (Not widely supported)
332
- */
333
- readonly strikethrough: Chalk;
334
-
335
- /**
336
- Modifier: Prints the text only when Chalk has a color support level > 0.
337
- Can be useful for things that are purely cosmetic.
338
- */
339
- readonly visible: Chalk;
340
-
341
- readonly black: Chalk;
342
- readonly red: Chalk;
343
- readonly green: Chalk;
344
- readonly yellow: Chalk;
345
- readonly blue: Chalk;
346
- readonly magenta: Chalk;
347
- readonly cyan: Chalk;
348
- readonly white: Chalk;
349
-
350
- /*
351
- Alias for `blackBright`.
352
- */
353
- readonly gray: Chalk;
354
-
355
- /*
356
- Alias for `blackBright`.
357
- */
358
- readonly grey: Chalk;
359
-
360
- readonly blackBright: Chalk;
361
- readonly redBright: Chalk;
362
- readonly greenBright: Chalk;
363
- readonly yellowBright: Chalk;
364
- readonly blueBright: Chalk;
365
- readonly magentaBright: Chalk;
366
- readonly cyanBright: Chalk;
367
- readonly whiteBright: Chalk;
368
-
369
- readonly bgBlack: Chalk;
370
- readonly bgRed: Chalk;
371
- readonly bgGreen: Chalk;
372
- readonly bgYellow: Chalk;
373
- readonly bgBlue: Chalk;
374
- readonly bgMagenta: Chalk;
375
- readonly bgCyan: Chalk;
376
- readonly bgWhite: Chalk;
377
-
378
- /*
379
- Alias for `bgBlackBright`.
380
- */
381
- readonly bgGray: Chalk;
382
-
383
- /*
384
- Alias for `bgBlackBright`.
385
- */
386
- readonly bgGrey: Chalk;
387
-
388
- readonly bgBlackBright: Chalk;
389
- readonly bgRedBright: Chalk;
390
- readonly bgGreenBright: Chalk;
391
- readonly bgYellowBright: Chalk;
392
- readonly bgBlueBright: Chalk;
393
- readonly bgMagentaBright: Chalk;
394
- readonly bgCyanBright: Chalk;
395
- readonly bgWhiteBright: Chalk;
396
- }
397
- }
398
-
399
- /**
400
- Main Chalk object that allows to chain styles together.
401
- Call the last one as a method with a string argument.
402
- Order doesn't matter, and later styles take precedent in case of a conflict.
403
- This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
404
- */
405
- declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
406
- supportsColor: chalk.ColorSupport | false;
407
- Level: chalk.Level;
408
- Color: Color;
409
- ForegroundColor: ForegroundColor;
410
- BackgroundColor: BackgroundColor;
411
- Modifiers: Modifiers;
412
- stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false};
413
- };
414
-
415
- export = chalk;