novac 2.2.0 → 2.2.2

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 (122) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/bin/novac +6 -3
  4. package/bin/nvc +0 -0
  5. package/bin/nvml +0 -0
  6. package/demo.nv +0 -0
  7. package/demo_builtins.nv +0 -0
  8. package/demo_http.nv +0 -0
  9. package/examples/bf.nv +5 -13
  10. package/examples/math.nv +2 -2
  11. package/kits/kitffmpeg/kitdef.js +1174 -0
  12. package/kits/libos/kitdef.js +3135 -0
  13. package/kits/libtasker/kitdef.js +125 -0
  14. package/package.json +1 -1
  15. package/scripts/update-bin.js +0 -0
  16. package/src/core/executor.js +7 -4
  17. package/src/core/lexer.js +2 -2
  18. package/src/index.js +0 -0
  19. package/novac/LICENSE +0 -21
  20. package/novac/README.md +0 -1823
  21. package/novac/bin/novac +0 -950
  22. package/novac/bin/nvc +0 -522
  23. package/novac/bin/nvml +0 -542
  24. package/novac/demo.nv +0 -245
  25. package/novac/demo_builtins.nv +0 -209
  26. package/novac/demo_http.nv +0 -62
  27. package/novac/examples/bf.nv +0 -69
  28. package/novac/examples/math.nv +0 -21
  29. package/novac/kits/kitai/kitdef.js +0 -2185
  30. package/novac/kits/kitansi/kitdef.js +0 -1402
  31. package/novac/kits/kitformat/kitdef.js +0 -1485
  32. package/novac/kits/kitgps/kitdef.js +0 -1862
  33. package/novac/kits/kitlibfs/kitdef.js +0 -231
  34. package/novac/kits/kitlibproc/kitdef.js +0 -78
  35. package/novac/kits/kitmatrix/ex.js +0 -19
  36. package/novac/kits/kitmatrix/kitdef.js +0 -960
  37. package/novac/kits/kitmpatch/kitdef.js +0 -906
  38. package/novac/kits/kitnovacweb/README.md +0 -1572
  39. package/novac/kits/kitnovacweb/demo.nv +0 -12
  40. package/novac/kits/kitnovacweb/demo.nvml +0 -71
  41. package/novac/kits/kitnovacweb/index.nova +0 -12
  42. package/novac/kits/kitnovacweb/kitdef.js +0 -692
  43. package/novac/kits/kitnovacweb/nova.kit.json +0 -8
  44. package/novac/kits/kitnovacweb/nvml/executor.js +0 -739
  45. package/novac/kits/kitnovacweb/nvml/index.js +0 -67
  46. package/novac/kits/kitnovacweb/nvml/lexer.js +0 -263
  47. package/novac/kits/kitnovacweb/nvml/parser.js +0 -508
  48. package/novac/kits/kitnovacweb/nvml/renderer.js +0 -924
  49. package/novac/kits/kitparse/kitdef.js +0 -1688
  50. package/novac/kits/kitregex++/kitdef.js +0 -1353
  51. package/novac/kits/kitrequire/kitdef.js +0 -1599
  52. package/novac/kits/kitx11/kitdef.js +0 -1
  53. package/novac/kits/kitx11/kitx11.js +0 -2472
  54. package/novac/kits/kitx11/kitx11_conn.js +0 -948
  55. package/novac/kits/kitx11/kitx11_worker.js +0 -121
  56. package/novac/kits/libtea/tf.js +0 -2691
  57. package/novac/kits/libterm/ex.js +0 -285
  58. package/novac/kits/libterm/kitdef.js +0 -1927
  59. package/novac/node_modules/chalk/license +0 -9
  60. package/novac/node_modules/chalk/package.json +0 -83
  61. package/novac/node_modules/chalk/readme.md +0 -297
  62. package/novac/node_modules/chalk/source/index.d.ts +0 -325
  63. package/novac/node_modules/chalk/source/index.js +0 -225
  64. package/novac/node_modules/chalk/source/utilities.js +0 -33
  65. package/novac/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  66. package/novac/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  67. package/novac/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  68. package/novac/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  69. package/novac/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  70. package/novac/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  71. package/novac/node_modules/commander/LICENSE +0 -22
  72. package/novac/node_modules/commander/Readme.md +0 -1176
  73. package/novac/node_modules/commander/esm.mjs +0 -16
  74. package/novac/node_modules/commander/index.js +0 -24
  75. package/novac/node_modules/commander/lib/argument.js +0 -150
  76. package/novac/node_modules/commander/lib/command.js +0 -2777
  77. package/novac/node_modules/commander/lib/error.js +0 -39
  78. package/novac/node_modules/commander/lib/help.js +0 -747
  79. package/novac/node_modules/commander/lib/option.js +0 -380
  80. package/novac/node_modules/commander/lib/suggestSimilar.js +0 -101
  81. package/novac/node_modules/commander/package-support.json +0 -19
  82. package/novac/node_modules/commander/package.json +0 -82
  83. package/novac/node_modules/commander/typings/esm.d.mts +0 -3
  84. package/novac/node_modules/commander/typings/index.d.ts +0 -1113
  85. package/novac/node_modules/node-addon-api/LICENSE.md +0 -9
  86. package/novac/node_modules/node-addon-api/README.md +0 -95
  87. package/novac/node_modules/node-addon-api/common.gypi +0 -21
  88. package/novac/node_modules/node-addon-api/except.gypi +0 -25
  89. package/novac/node_modules/node-addon-api/index.js +0 -14
  90. package/novac/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  91. package/novac/node_modules/node-addon-api/napi-inl.h +0 -7165
  92. package/novac/node_modules/node-addon-api/napi.h +0 -3364
  93. package/novac/node_modules/node-addon-api/node_addon_api.gyp +0 -42
  94. package/novac/node_modules/node-addon-api/node_api.gyp +0 -9
  95. package/novac/node_modules/node-addon-api/noexcept.gypi +0 -26
  96. package/novac/node_modules/node-addon-api/nothing.c +0 -0
  97. package/novac/node_modules/node-addon-api/package-support.json +0 -21
  98. package/novac/node_modules/node-addon-api/package.json +0 -480
  99. package/novac/node_modules/node-addon-api/tools/README.md +0 -73
  100. package/novac/node_modules/node-addon-api/tools/check-napi.js +0 -99
  101. package/novac/node_modules/node-addon-api/tools/clang-format.js +0 -71
  102. package/novac/node_modules/node-addon-api/tools/conversion.js +0 -301
  103. package/novac/node_modules/serialize-javascript/LICENSE +0 -27
  104. package/novac/node_modules/serialize-javascript/README.md +0 -149
  105. package/novac/node_modules/serialize-javascript/index.js +0 -297
  106. package/novac/node_modules/serialize-javascript/package.json +0 -33
  107. package/novac/package.json +0 -27
  108. package/novac/scripts/update-bin.js +0 -24
  109. package/novac/src/core/bstd.js +0 -1035
  110. package/novac/src/core/config.js +0 -155
  111. package/novac/src/core/describe.js +0 -187
  112. package/novac/src/core/emitter.js +0 -499
  113. package/novac/src/core/error.js +0 -86
  114. package/novac/src/core/executor.js +0 -5606
  115. package/novac/src/core/formatter.js +0 -686
  116. package/novac/src/core/lexer.js +0 -1026
  117. package/novac/src/core/nova_builtins.js +0 -717
  118. package/novac/src/core/nova_thread_worker.js +0 -166
  119. package/novac/src/core/parser.js +0 -2181
  120. package/novac/src/core/types.js +0 -112
  121. package/novac/src/index.js +0 -28
  122. package/novac/src/runtime/stdlib.js +0 -244
@@ -1,236 +0,0 @@
1
- export interface CSPair { // eslint-disable-line @typescript-eslint/naming-convention
2
- /**
3
- The ANSI terminal control sequence for starting this style.
4
- */
5
- readonly open: string;
6
-
7
- /**
8
- The ANSI terminal control sequence for ending this style.
9
- */
10
- readonly close: string;
11
- }
12
-
13
- export interface ColorBase {
14
- /**
15
- The ANSI terminal control sequence for ending this color.
16
- */
17
- readonly close: string;
18
-
19
- ansi(code: number): string;
20
-
21
- ansi256(code: number): string;
22
-
23
- ansi16m(red: number, green: number, blue: number): string;
24
- }
25
-
26
- export interface Modifier {
27
- /**
28
- Resets the current color chain.
29
- */
30
- readonly reset: CSPair;
31
-
32
- /**
33
- Make text bold.
34
- */
35
- readonly bold: CSPair;
36
-
37
- /**
38
- Emitting only a small amount of light.
39
- */
40
- readonly dim: CSPair;
41
-
42
- /**
43
- Make text italic. (Not widely supported)
44
- */
45
- readonly italic: CSPair;
46
-
47
- /**
48
- Make text underline. (Not widely supported)
49
- */
50
- readonly underline: CSPair;
51
-
52
- /**
53
- Make text overline.
54
-
55
- Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.
56
- */
57
- readonly overline: CSPair;
58
-
59
- /**
60
- Inverse background and foreground colors.
61
- */
62
- readonly inverse: CSPair;
63
-
64
- /**
65
- Prints the text, but makes it invisible.
66
- */
67
- readonly hidden: CSPair;
68
-
69
- /**
70
- Puts a horizontal line through the center of the text. (Not widely supported)
71
- */
72
- readonly strikethrough: CSPair;
73
- }
74
-
75
- export interface ForegroundColor {
76
- readonly black: CSPair;
77
- readonly red: CSPair;
78
- readonly green: CSPair;
79
- readonly yellow: CSPair;
80
- readonly blue: CSPair;
81
- readonly cyan: CSPair;
82
- readonly magenta: CSPair;
83
- readonly white: CSPair;
84
-
85
- /**
86
- Alias for `blackBright`.
87
- */
88
- readonly gray: CSPair;
89
-
90
- /**
91
- Alias for `blackBright`.
92
- */
93
- readonly grey: CSPair;
94
-
95
- readonly blackBright: CSPair;
96
- readonly redBright: CSPair;
97
- readonly greenBright: CSPair;
98
- readonly yellowBright: CSPair;
99
- readonly blueBright: CSPair;
100
- readonly cyanBright: CSPair;
101
- readonly magentaBright: CSPair;
102
- readonly whiteBright: CSPair;
103
- }
104
-
105
- export interface BackgroundColor {
106
- readonly bgBlack: CSPair;
107
- readonly bgRed: CSPair;
108
- readonly bgGreen: CSPair;
109
- readonly bgYellow: CSPair;
110
- readonly bgBlue: CSPair;
111
- readonly bgCyan: CSPair;
112
- readonly bgMagenta: CSPair;
113
- readonly bgWhite: CSPair;
114
-
115
- /**
116
- Alias for `bgBlackBright`.
117
- */
118
- readonly bgGray: CSPair;
119
-
120
- /**
121
- Alias for `bgBlackBright`.
122
- */
123
- readonly bgGrey: CSPair;
124
-
125
- readonly bgBlackBright: CSPair;
126
- readonly bgRedBright: CSPair;
127
- readonly bgGreenBright: CSPair;
128
- readonly bgYellowBright: CSPair;
129
- readonly bgBlueBright: CSPair;
130
- readonly bgCyanBright: CSPair;
131
- readonly bgMagentaBright: CSPair;
132
- readonly bgWhiteBright: CSPair;
133
- }
134
-
135
- export interface ConvertColor {
136
- /**
137
- Convert from the RGB color space to the ANSI 256 color space.
138
-
139
- @param red - (`0...255`)
140
- @param green - (`0...255`)
141
- @param blue - (`0...255`)
142
- */
143
- rgbToAnsi256(red: number, green: number, blue: number): number;
144
-
145
- /**
146
- Convert from the RGB HEX color space to the RGB color space.
147
-
148
- @param hex - A hexadecimal string containing RGB data.
149
- */
150
- hexToRgb(hex: string): [red: number, green: number, blue: number];
151
-
152
- /**
153
- Convert from the RGB HEX color space to the ANSI 256 color space.
154
-
155
- @param hex - A hexadecimal string containing RGB data.
156
- */
157
- hexToAnsi256(hex: string): number;
158
-
159
- /**
160
- Convert from the ANSI 256 color space to the ANSI 16 color space.
161
-
162
- @param code - A number representing the ANSI 256 color.
163
- */
164
- ansi256ToAnsi(code: number): number;
165
-
166
- /**
167
- Convert from the RGB color space to the ANSI 16 color space.
168
-
169
- @param red - (`0...255`)
170
- @param green - (`0...255`)
171
- @param blue - (`0...255`)
172
- */
173
- rgbToAnsi(red: number, green: number, blue: number): number;
174
-
175
- /**
176
- Convert from the RGB HEX color space to the ANSI 16 color space.
177
-
178
- @param hex - A hexadecimal string containing RGB data.
179
- */
180
- hexToAnsi(hex: string): number;
181
- }
182
-
183
- /**
184
- Basic modifier names.
185
- */
186
- export type ModifierName = keyof Modifier;
187
-
188
- /**
189
- Basic foreground color names.
190
-
191
- [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
192
- */
193
- export type ForegroundColorName = keyof ForegroundColor;
194
-
195
- /**
196
- Basic background color names.
197
-
198
- [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
199
- */
200
- export type BackgroundColorName = keyof BackgroundColor;
201
-
202
- /**
203
- Basic color names. The combination of foreground and background color names.
204
-
205
- [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
206
- */
207
- export type ColorName = ForegroundColorName | BackgroundColorName;
208
-
209
- /**
210
- Basic modifier names.
211
- */
212
- export const modifierNames: readonly ModifierName[];
213
-
214
- /**
215
- Basic foreground color names.
216
- */
217
- export const foregroundColorNames: readonly ForegroundColorName[];
218
-
219
- /**
220
- Basic background color names.
221
- */
222
- export const backgroundColorNames: readonly BackgroundColorName[];
223
-
224
- /*
225
- Basic color names. The combination of foreground and background color names.
226
- */
227
- export const colorNames: readonly ColorName[];
228
-
229
- declare const ansiStyles: {
230
- readonly modifier: Modifier;
231
- readonly color: ColorBase & ForegroundColor;
232
- readonly bgColor: ColorBase & BackgroundColor;
233
- readonly codes: ReadonlyMap<number, number>;
234
- } & ForegroundColor & BackgroundColor & Modifier & ConvertColor;
235
-
236
- export default ansiStyles;
@@ -1,223 +0,0 @@
1
- const ANSI_BACKGROUND_OFFSET = 10;
2
-
3
- const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
4
-
5
- const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
6
-
7
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
8
-
9
- const styles = {
10
- modifier: {
11
- reset: [0, 0],
12
- // 21 isn't widely supported and 22 does the same thing
13
- bold: [1, 22],
14
- dim: [2, 22],
15
- italic: [3, 23],
16
- underline: [4, 24],
17
- overline: [53, 55],
18
- inverse: [7, 27],
19
- hidden: [8, 28],
20
- strikethrough: [9, 29],
21
- },
22
- color: {
23
- black: [30, 39],
24
- red: [31, 39],
25
- green: [32, 39],
26
- yellow: [33, 39],
27
- blue: [34, 39],
28
- magenta: [35, 39],
29
- cyan: [36, 39],
30
- white: [37, 39],
31
-
32
- // Bright color
33
- blackBright: [90, 39],
34
- gray: [90, 39], // Alias of `blackBright`
35
- grey: [90, 39], // Alias of `blackBright`
36
- redBright: [91, 39],
37
- greenBright: [92, 39],
38
- yellowBright: [93, 39],
39
- blueBright: [94, 39],
40
- magentaBright: [95, 39],
41
- cyanBright: [96, 39],
42
- whiteBright: [97, 39],
43
- },
44
- bgColor: {
45
- bgBlack: [40, 49],
46
- bgRed: [41, 49],
47
- bgGreen: [42, 49],
48
- bgYellow: [43, 49],
49
- bgBlue: [44, 49],
50
- bgMagenta: [45, 49],
51
- bgCyan: [46, 49],
52
- bgWhite: [47, 49],
53
-
54
- // Bright color
55
- bgBlackBright: [100, 49],
56
- bgGray: [100, 49], // Alias of `bgBlackBright`
57
- bgGrey: [100, 49], // Alias of `bgBlackBright`
58
- bgRedBright: [101, 49],
59
- bgGreenBright: [102, 49],
60
- bgYellowBright: [103, 49],
61
- bgBlueBright: [104, 49],
62
- bgMagentaBright: [105, 49],
63
- bgCyanBright: [106, 49],
64
- bgWhiteBright: [107, 49],
65
- },
66
- };
67
-
68
- export const modifierNames = Object.keys(styles.modifier);
69
- export const foregroundColorNames = Object.keys(styles.color);
70
- export const backgroundColorNames = Object.keys(styles.bgColor);
71
- export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
72
-
73
- function assembleStyles() {
74
- const codes = new Map();
75
-
76
- for (const [groupName, group] of Object.entries(styles)) {
77
- for (const [styleName, style] of Object.entries(group)) {
78
- styles[styleName] = {
79
- open: `\u001B[${style[0]}m`,
80
- close: `\u001B[${style[1]}m`,
81
- };
82
-
83
- group[styleName] = styles[styleName];
84
-
85
- codes.set(style[0], style[1]);
86
- }
87
-
88
- Object.defineProperty(styles, groupName, {
89
- value: group,
90
- enumerable: false,
91
- });
92
- }
93
-
94
- Object.defineProperty(styles, 'codes', {
95
- value: codes,
96
- enumerable: false,
97
- });
98
-
99
- styles.color.close = '\u001B[39m';
100
- styles.bgColor.close = '\u001B[49m';
101
-
102
- styles.color.ansi = wrapAnsi16();
103
- styles.color.ansi256 = wrapAnsi256();
104
- styles.color.ansi16m = wrapAnsi16m();
105
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
106
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
107
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
108
-
109
- // From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
110
- Object.defineProperties(styles, {
111
- rgbToAnsi256: {
112
- value(red, green, blue) {
113
- // We use the extended greyscale palette here, with the exception of
114
- // black and white. normal palette only has 4 greyscale shades.
115
- if (red === green && green === blue) {
116
- if (red < 8) {
117
- return 16;
118
- }
119
-
120
- if (red > 248) {
121
- return 231;
122
- }
123
-
124
- return Math.round(((red - 8) / 247) * 24) + 232;
125
- }
126
-
127
- return 16
128
- + (36 * Math.round(red / 255 * 5))
129
- + (6 * Math.round(green / 255 * 5))
130
- + Math.round(blue / 255 * 5);
131
- },
132
- enumerable: false,
133
- },
134
- hexToRgb: {
135
- value(hex) {
136
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
137
- if (!matches) {
138
- return [0, 0, 0];
139
- }
140
-
141
- let [colorString] = matches;
142
-
143
- if (colorString.length === 3) {
144
- colorString = [...colorString].map(character => character + character).join('');
145
- }
146
-
147
- const integer = Number.parseInt(colorString, 16);
148
-
149
- return [
150
- /* eslint-disable no-bitwise */
151
- (integer >> 16) & 0xFF,
152
- (integer >> 8) & 0xFF,
153
- integer & 0xFF,
154
- /* eslint-enable no-bitwise */
155
- ];
156
- },
157
- enumerable: false,
158
- },
159
- hexToAnsi256: {
160
- value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
161
- enumerable: false,
162
- },
163
- ansi256ToAnsi: {
164
- value(code) {
165
- if (code < 8) {
166
- return 30 + code;
167
- }
168
-
169
- if (code < 16) {
170
- return 90 + (code - 8);
171
- }
172
-
173
- let red;
174
- let green;
175
- let blue;
176
-
177
- if (code >= 232) {
178
- red = (((code - 232) * 10) + 8) / 255;
179
- green = red;
180
- blue = red;
181
- } else {
182
- code -= 16;
183
-
184
- const remainder = code % 36;
185
-
186
- red = Math.floor(code / 36) / 5;
187
- green = Math.floor(remainder / 6) / 5;
188
- blue = (remainder % 6) / 5;
189
- }
190
-
191
- const value = Math.max(red, green, blue) * 2;
192
-
193
- if (value === 0) {
194
- return 30;
195
- }
196
-
197
- // eslint-disable-next-line no-bitwise
198
- let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
199
-
200
- if (value === 2) {
201
- result += 60;
202
- }
203
-
204
- return result;
205
- },
206
- enumerable: false,
207
- },
208
- rgbToAnsi: {
209
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
210
- enumerable: false,
211
- },
212
- hexToAnsi: {
213
- value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
214
- enumerable: false,
215
- },
216
- });
217
-
218
- return styles;
219
- }
220
-
221
- const ansiStyles = assembleStyles();
222
-
223
- export default ansiStyles;
@@ -1 +0,0 @@
1
- export {default} from './index.js';
@@ -1,34 +0,0 @@
1
- /* eslint-env browser */
2
-
3
- const level = (() => {
4
- if (!('navigator' in globalThis)) {
5
- return 0;
6
- }
7
-
8
- if (globalThis.navigator.userAgentData) {
9
- const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
10
- if (brand && brand.version > 93) {
11
- return 3;
12
- }
13
- }
14
-
15
- if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
16
- return 1;
17
- }
18
-
19
- return 0;
20
- })();
21
-
22
- const colorSupport = level !== 0 && {
23
- level,
24
- hasBasic: true,
25
- has256: level >= 2,
26
- has16m: level >= 3,
27
- };
28
-
29
- const supportsColor = {
30
- stdout: colorSupport,
31
- stderr: colorSupport,
32
- };
33
-
34
- export default supportsColor;
@@ -1,55 +0,0 @@
1
- import type {WriteStream} from 'node:tty';
2
-
3
- export type Options = {
4
- /**
5
- Whether `process.argv` should be sniffed for `--color` and `--no-color` flags.
6
-
7
- @default true
8
- */
9
- readonly sniffFlags?: boolean;
10
- };
11
-
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
- export type ColorSupportLevel = 0 | 1 | 2 | 3;
20
-
21
- /**
22
- Detect whether the terminal supports color.
23
- */
24
- export type ColorSupport = {
25
- /**
26
- The color level.
27
- */
28
- level: ColorSupportLevel;
29
-
30
- /**
31
- Whether basic 16 colors are supported.
32
- */
33
- hasBasic: boolean;
34
-
35
- /**
36
- Whether ANSI 256 colors are supported.
37
- */
38
- has256: boolean;
39
-
40
- /**
41
- Whether Truecolor 16 million colors are supported.
42
- */
43
- has16m: boolean;
44
- };
45
-
46
- export type ColorInfo = ColorSupport | false;
47
-
48
- export function createSupportsColor(stream?: WriteStream, options?: Options): ColorInfo;
49
-
50
- declare const supportsColor: {
51
- stdout: ColorInfo;
52
- stderr: ColorInfo;
53
- };
54
-
55
- export default supportsColor;