@cjser/inquirer__figures 2.0.5-cjser.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.
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2025 Simon Boudrias
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,6 @@
1
+
2
+
3
+ ## cjser
4
+
5
+ This package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
6
+ Original repository: https://github.com/SBoudrias/Inquirer.js
@@ -0,0 +1,275 @@
1
+ declare const common: {
2
+ circleQuestionMark: string;
3
+ questionMarkPrefix: string;
4
+ square: string;
5
+ squareDarkShade: string;
6
+ squareMediumShade: string;
7
+ squareLightShade: string;
8
+ squareTop: string;
9
+ squareBottom: string;
10
+ squareLeft: string;
11
+ squareRight: string;
12
+ squareCenter: string;
13
+ bullet: string;
14
+ dot: string;
15
+ ellipsis: string;
16
+ pointerSmall: string;
17
+ triangleUp: string;
18
+ triangleUpSmall: string;
19
+ triangleDown: string;
20
+ triangleDownSmall: string;
21
+ triangleLeftSmall: string;
22
+ triangleRightSmall: string;
23
+ home: string;
24
+ heart: string;
25
+ musicNote: string;
26
+ musicNoteBeamed: string;
27
+ arrowUp: string;
28
+ arrowDown: string;
29
+ arrowLeft: string;
30
+ arrowRight: string;
31
+ arrowLeftRight: string;
32
+ arrowUpDown: string;
33
+ almostEqual: string;
34
+ notEqual: string;
35
+ lessOrEqual: string;
36
+ greaterOrEqual: string;
37
+ identical: string;
38
+ infinity: string;
39
+ subscriptZero: string;
40
+ subscriptOne: string;
41
+ subscriptTwo: string;
42
+ subscriptThree: string;
43
+ subscriptFour: string;
44
+ subscriptFive: string;
45
+ subscriptSix: string;
46
+ subscriptSeven: string;
47
+ subscriptEight: string;
48
+ subscriptNine: string;
49
+ oneHalf: string;
50
+ oneThird: string;
51
+ oneQuarter: string;
52
+ oneFifth: string;
53
+ oneSixth: string;
54
+ oneEighth: string;
55
+ twoThirds: string;
56
+ twoFifths: string;
57
+ threeQuarters: string;
58
+ threeFifths: string;
59
+ threeEighths: string;
60
+ fourFifths: string;
61
+ fiveSixths: string;
62
+ fiveEighths: string;
63
+ sevenEighths: string;
64
+ line: string;
65
+ lineBold: string;
66
+ lineDouble: string;
67
+ lineDashed0: string;
68
+ lineDashed1: string;
69
+ lineDashed2: string;
70
+ lineDashed3: string;
71
+ lineDashed4: string;
72
+ lineDashed5: string;
73
+ lineDashed6: string;
74
+ lineDashed7: string;
75
+ lineDashed8: string;
76
+ lineDashed9: string;
77
+ lineDashed10: string;
78
+ lineDashed11: string;
79
+ lineDashed12: string;
80
+ lineDashed13: string;
81
+ lineDashed14: string;
82
+ lineDashed15: string;
83
+ lineVertical: string;
84
+ lineVerticalBold: string;
85
+ lineVerticalDouble: string;
86
+ lineVerticalDashed0: string;
87
+ lineVerticalDashed1: string;
88
+ lineVerticalDashed2: string;
89
+ lineVerticalDashed3: string;
90
+ lineVerticalDashed4: string;
91
+ lineVerticalDashed5: string;
92
+ lineVerticalDashed6: string;
93
+ lineVerticalDashed7: string;
94
+ lineVerticalDashed8: string;
95
+ lineVerticalDashed9: string;
96
+ lineVerticalDashed10: string;
97
+ lineVerticalDashed11: string;
98
+ lineDownLeft: string;
99
+ lineDownLeftArc: string;
100
+ lineDownBoldLeftBold: string;
101
+ lineDownBoldLeft: string;
102
+ lineDownLeftBold: string;
103
+ lineDownDoubleLeftDouble: string;
104
+ lineDownDoubleLeft: string;
105
+ lineDownLeftDouble: string;
106
+ lineDownRight: string;
107
+ lineDownRightArc: string;
108
+ lineDownBoldRightBold: string;
109
+ lineDownBoldRight: string;
110
+ lineDownRightBold: string;
111
+ lineDownDoubleRightDouble: string;
112
+ lineDownDoubleRight: string;
113
+ lineDownRightDouble: string;
114
+ lineUpLeft: string;
115
+ lineUpLeftArc: string;
116
+ lineUpBoldLeftBold: string;
117
+ lineUpBoldLeft: string;
118
+ lineUpLeftBold: string;
119
+ lineUpDoubleLeftDouble: string;
120
+ lineUpDoubleLeft: string;
121
+ lineUpLeftDouble: string;
122
+ lineUpRight: string;
123
+ lineUpRightArc: string;
124
+ lineUpBoldRightBold: string;
125
+ lineUpBoldRight: string;
126
+ lineUpRightBold: string;
127
+ lineUpDoubleRightDouble: string;
128
+ lineUpDoubleRight: string;
129
+ lineUpRightDouble: string;
130
+ lineUpDownLeft: string;
131
+ lineUpBoldDownBoldLeftBold: string;
132
+ lineUpBoldDownBoldLeft: string;
133
+ lineUpDownLeftBold: string;
134
+ lineUpBoldDownLeftBold: string;
135
+ lineUpDownBoldLeftBold: string;
136
+ lineUpDownBoldLeft: string;
137
+ lineUpBoldDownLeft: string;
138
+ lineUpDoubleDownDoubleLeftDouble: string;
139
+ lineUpDoubleDownDoubleLeft: string;
140
+ lineUpDownLeftDouble: string;
141
+ lineUpDownRight: string;
142
+ lineUpBoldDownBoldRightBold: string;
143
+ lineUpBoldDownBoldRight: string;
144
+ lineUpDownRightBold: string;
145
+ lineUpBoldDownRightBold: string;
146
+ lineUpDownBoldRightBold: string;
147
+ lineUpDownBoldRight: string;
148
+ lineUpBoldDownRight: string;
149
+ lineUpDoubleDownDoubleRightDouble: string;
150
+ lineUpDoubleDownDoubleRight: string;
151
+ lineUpDownRightDouble: string;
152
+ lineDownLeftRight: string;
153
+ lineDownBoldLeftBoldRightBold: string;
154
+ lineDownLeftBoldRightBold: string;
155
+ lineDownBoldLeftRight: string;
156
+ lineDownBoldLeftBoldRight: string;
157
+ lineDownBoldLeftRightBold: string;
158
+ lineDownLeftRightBold: string;
159
+ lineDownLeftBoldRight: string;
160
+ lineDownDoubleLeftDoubleRightDouble: string;
161
+ lineDownDoubleLeftRight: string;
162
+ lineDownLeftDoubleRightDouble: string;
163
+ lineUpLeftRight: string;
164
+ lineUpBoldLeftBoldRightBold: string;
165
+ lineUpLeftBoldRightBold: string;
166
+ lineUpBoldLeftRight: string;
167
+ lineUpBoldLeftBoldRight: string;
168
+ lineUpBoldLeftRightBold: string;
169
+ lineUpLeftRightBold: string;
170
+ lineUpLeftBoldRight: string;
171
+ lineUpDoubleLeftDoubleRightDouble: string;
172
+ lineUpDoubleLeftRight: string;
173
+ lineUpLeftDoubleRightDouble: string;
174
+ lineUpDownLeftRight: string;
175
+ lineUpBoldDownBoldLeftBoldRightBold: string;
176
+ lineUpDownBoldLeftBoldRightBold: string;
177
+ lineUpBoldDownLeftBoldRightBold: string;
178
+ lineUpBoldDownBoldLeftRightBold: string;
179
+ lineUpBoldDownBoldLeftBoldRight: string;
180
+ lineUpBoldDownLeftRight: string;
181
+ lineUpDownBoldLeftRight: string;
182
+ lineUpDownLeftBoldRight: string;
183
+ lineUpDownLeftRightBold: string;
184
+ lineUpBoldDownBoldLeftRight: string;
185
+ lineUpDownLeftBoldRightBold: string;
186
+ lineUpBoldDownLeftBoldRight: string;
187
+ lineUpBoldDownLeftRightBold: string;
188
+ lineUpDownBoldLeftBoldRight: string;
189
+ lineUpDownBoldLeftRightBold: string;
190
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
191
+ lineUpDoubleDownDoubleLeftRight: string;
192
+ lineUpDownLeftDoubleRightDouble: string;
193
+ lineCross: string;
194
+ lineBackslash: string;
195
+ lineSlash: string;
196
+ };
197
+ declare const specialMainSymbols: {
198
+ tick: string;
199
+ info: string;
200
+ warning: string;
201
+ cross: string;
202
+ squareSmall: string;
203
+ squareSmallFilled: string;
204
+ circle: string;
205
+ circleFilled: string;
206
+ circleDotted: string;
207
+ circleDouble: string;
208
+ circleCircle: string;
209
+ circleCross: string;
210
+ circlePipe: string;
211
+ radioOn: string;
212
+ radioOff: string;
213
+ checkboxOn: string;
214
+ checkboxOff: string;
215
+ checkboxCircleOn: string;
216
+ checkboxCircleOff: string;
217
+ pointer: string;
218
+ triangleUpOutline: string;
219
+ triangleLeft: string;
220
+ triangleRight: string;
221
+ lozenge: string;
222
+ lozengeOutline: string;
223
+ hamburger: string;
224
+ smiley: string;
225
+ mustache: string;
226
+ star: string;
227
+ play: string;
228
+ nodejs: string;
229
+ oneSeventh: string;
230
+ oneNinth: string;
231
+ oneTenth: string;
232
+ };
233
+ declare const specialFallbackSymbols: {
234
+ tick: string;
235
+ info: string;
236
+ warning: string;
237
+ cross: string;
238
+ squareSmall: string;
239
+ squareSmallFilled: string;
240
+ circle: string;
241
+ circleFilled: string;
242
+ circleDotted: string;
243
+ circleDouble: string;
244
+ circleCircle: string;
245
+ circleCross: string;
246
+ circlePipe: string;
247
+ radioOn: string;
248
+ radioOff: string;
249
+ checkboxOn: string;
250
+ checkboxOff: string;
251
+ checkboxCircleOn: string;
252
+ checkboxCircleOff: string;
253
+ pointer: string;
254
+ triangleUpOutline: string;
255
+ triangleLeft: string;
256
+ triangleRight: string;
257
+ lozenge: string;
258
+ lozengeOutline: string;
259
+ hamburger: string;
260
+ smiley: string;
261
+ mustache: string;
262
+ star: string;
263
+ play: string;
264
+ nodejs: string;
265
+ oneSeventh: string;
266
+ oneNinth: string;
267
+ oneTenth: string;
268
+ };
269
+ export declare const mainSymbols: typeof common & typeof specialMainSymbols;
270
+ export declare const fallbackSymbols: (typeof common & typeof specialFallbackSymbols) & Record<string, string>;
271
+ declare const figures: typeof mainSymbols | typeof fallbackSymbols;
272
+ export default figures;
273
+ export declare const replaceSymbols: (string: string, { useFallback }?: {
274
+ useFallback?: boolean;
275
+ }) => string;
package/dist/index.js ADDED
@@ -0,0 +1,315 @@
1
+ // process.env dot-notation access prints:
2
+ // Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
3
+ /* eslint dot-notation: ["off"] */
4
+ import process from 'node:process';
5
+ // Ported from is-unicode-supported
6
+ function isUnicodeSupported() {
7
+ if (!process.platform.startsWith('win')) {
8
+ return process.env['TERM'] !== 'linux'; // Linux console (kernel)
9
+ }
10
+ return (Boolean(process.env['CI']) || // CI environments generally support unicode
11
+ Boolean(process.env['WT_SESSION']) || // Windows Terminal
12
+ Boolean(process.env['TERMINUS_SUBLIME']) || // Terminus (<0.2.27)
13
+ process.env['ConEmuTask'] === '{cmd::Cmder}' || // ConEmu and cmder
14
+ process.env['TERM_PROGRAM'] === 'Terminus-Sublime' ||
15
+ process.env['TERM_PROGRAM'] === 'vscode' ||
16
+ process.env['TERM'] === 'xterm-256color' ||
17
+ process.env['TERM'] === 'alacritty' ||
18
+ process.env['TERMINAL_EMULATOR'] === 'JetBrains-JediTerm');
19
+ }
20
+ // Ported from figures
21
+ const common = {
22
+ circleQuestionMark: '(?)',
23
+ questionMarkPrefix: '(?)',
24
+ square: '█',
25
+ squareDarkShade: '▓',
26
+ squareMediumShade: '▒',
27
+ squareLightShade: '░',
28
+ squareTop: '▀',
29
+ squareBottom: '▄',
30
+ squareLeft: '▌',
31
+ squareRight: '▐',
32
+ squareCenter: '■',
33
+ bullet: '●',
34
+ dot: '․',
35
+ ellipsis: '…',
36
+ pointerSmall: '›',
37
+ triangleUp: '▲',
38
+ triangleUpSmall: '▴',
39
+ triangleDown: '▼',
40
+ triangleDownSmall: '▾',
41
+ triangleLeftSmall: '◂',
42
+ triangleRightSmall: '▸',
43
+ home: '⌂',
44
+ heart: '♥',
45
+ musicNote: '♪',
46
+ musicNoteBeamed: '♫',
47
+ arrowUp: '↑',
48
+ arrowDown: '↓',
49
+ arrowLeft: '←',
50
+ arrowRight: '→',
51
+ arrowLeftRight: '↔',
52
+ arrowUpDown: '↕',
53
+ almostEqual: '≈',
54
+ notEqual: '≠',
55
+ lessOrEqual: '≤',
56
+ greaterOrEqual: '≥',
57
+ identical: '≡',
58
+ infinity: '∞',
59
+ subscriptZero: '₀',
60
+ subscriptOne: '₁',
61
+ subscriptTwo: '₂',
62
+ subscriptThree: '₃',
63
+ subscriptFour: '₄',
64
+ subscriptFive: '₅',
65
+ subscriptSix: '₆',
66
+ subscriptSeven: '₇',
67
+ subscriptEight: '₈',
68
+ subscriptNine: '₉',
69
+ oneHalf: '½',
70
+ oneThird: '⅓',
71
+ oneQuarter: '¼',
72
+ oneFifth: '⅕',
73
+ oneSixth: '⅙',
74
+ oneEighth: '⅛',
75
+ twoThirds: '⅔',
76
+ twoFifths: '⅖',
77
+ threeQuarters: '¾',
78
+ threeFifths: '⅗',
79
+ threeEighths: '⅜',
80
+ fourFifths: '⅘',
81
+ fiveSixths: '⅚',
82
+ fiveEighths: '⅝',
83
+ sevenEighths: '⅞',
84
+ line: '─',
85
+ lineBold: '━',
86
+ lineDouble: '═',
87
+ lineDashed0: '┄',
88
+ lineDashed1: '┅',
89
+ lineDashed2: '┈',
90
+ lineDashed3: '┉',
91
+ lineDashed4: '╌',
92
+ lineDashed5: '╍',
93
+ lineDashed6: '╴',
94
+ lineDashed7: '╶',
95
+ lineDashed8: '╸',
96
+ lineDashed9: '╺',
97
+ lineDashed10: '╼',
98
+ lineDashed11: '╾',
99
+ lineDashed12: '−',
100
+ lineDashed13: '–',
101
+ lineDashed14: '‐',
102
+ lineDashed15: '⁃',
103
+ lineVertical: '│',
104
+ lineVerticalBold: '┃',
105
+ lineVerticalDouble: '║',
106
+ lineVerticalDashed0: '┆',
107
+ lineVerticalDashed1: '┇',
108
+ lineVerticalDashed2: '┊',
109
+ lineVerticalDashed3: '┋',
110
+ lineVerticalDashed4: '╎',
111
+ lineVerticalDashed5: '╏',
112
+ lineVerticalDashed6: '╵',
113
+ lineVerticalDashed7: '╷',
114
+ lineVerticalDashed8: '╹',
115
+ lineVerticalDashed9: '╻',
116
+ lineVerticalDashed10: '╽',
117
+ lineVerticalDashed11: '╿',
118
+ lineDownLeft: '┐',
119
+ lineDownLeftArc: '╮',
120
+ lineDownBoldLeftBold: '┓',
121
+ lineDownBoldLeft: '┒',
122
+ lineDownLeftBold: '┑',
123
+ lineDownDoubleLeftDouble: '╗',
124
+ lineDownDoubleLeft: '╖',
125
+ lineDownLeftDouble: '╕',
126
+ lineDownRight: '┌',
127
+ lineDownRightArc: '╭',
128
+ lineDownBoldRightBold: '┏',
129
+ lineDownBoldRight: '┎',
130
+ lineDownRightBold: '┍',
131
+ lineDownDoubleRightDouble: '╔',
132
+ lineDownDoubleRight: '╓',
133
+ lineDownRightDouble: '╒',
134
+ lineUpLeft: '┘',
135
+ lineUpLeftArc: '╯',
136
+ lineUpBoldLeftBold: '┛',
137
+ lineUpBoldLeft: '┚',
138
+ lineUpLeftBold: '┙',
139
+ lineUpDoubleLeftDouble: '╝',
140
+ lineUpDoubleLeft: '╜',
141
+ lineUpLeftDouble: '╛',
142
+ lineUpRight: '└',
143
+ lineUpRightArc: '╰',
144
+ lineUpBoldRightBold: '┗',
145
+ lineUpBoldRight: '┖',
146
+ lineUpRightBold: '┕',
147
+ lineUpDoubleRightDouble: '╚',
148
+ lineUpDoubleRight: '╙',
149
+ lineUpRightDouble: '╘',
150
+ lineUpDownLeft: '┤',
151
+ lineUpBoldDownBoldLeftBold: '┫',
152
+ lineUpBoldDownBoldLeft: '┨',
153
+ lineUpDownLeftBold: '┥',
154
+ lineUpBoldDownLeftBold: '┩',
155
+ lineUpDownBoldLeftBold: '┪',
156
+ lineUpDownBoldLeft: '┧',
157
+ lineUpBoldDownLeft: '┦',
158
+ lineUpDoubleDownDoubleLeftDouble: '╣',
159
+ lineUpDoubleDownDoubleLeft: '╢',
160
+ lineUpDownLeftDouble: '╡',
161
+ lineUpDownRight: '├',
162
+ lineUpBoldDownBoldRightBold: '┣',
163
+ lineUpBoldDownBoldRight: '┠',
164
+ lineUpDownRightBold: '┝',
165
+ lineUpBoldDownRightBold: '┡',
166
+ lineUpDownBoldRightBold: '┢',
167
+ lineUpDownBoldRight: '┟',
168
+ lineUpBoldDownRight: '┞',
169
+ lineUpDoubleDownDoubleRightDouble: '╠',
170
+ lineUpDoubleDownDoubleRight: '╟',
171
+ lineUpDownRightDouble: '╞',
172
+ lineDownLeftRight: '┬',
173
+ lineDownBoldLeftBoldRightBold: '┳',
174
+ lineDownLeftBoldRightBold: '┯',
175
+ lineDownBoldLeftRight: '┰',
176
+ lineDownBoldLeftBoldRight: '┱',
177
+ lineDownBoldLeftRightBold: '┲',
178
+ lineDownLeftRightBold: '┮',
179
+ lineDownLeftBoldRight: '┭',
180
+ lineDownDoubleLeftDoubleRightDouble: '╦',
181
+ lineDownDoubleLeftRight: '╥',
182
+ lineDownLeftDoubleRightDouble: '╤',
183
+ lineUpLeftRight: '┴',
184
+ lineUpBoldLeftBoldRightBold: '┻',
185
+ lineUpLeftBoldRightBold: '┷',
186
+ lineUpBoldLeftRight: '┸',
187
+ lineUpBoldLeftBoldRight: '┹',
188
+ lineUpBoldLeftRightBold: '┺',
189
+ lineUpLeftRightBold: '┶',
190
+ lineUpLeftBoldRight: '┵',
191
+ lineUpDoubleLeftDoubleRightDouble: '╩',
192
+ lineUpDoubleLeftRight: '╨',
193
+ lineUpLeftDoubleRightDouble: '╧',
194
+ lineUpDownLeftRight: '┼',
195
+ lineUpBoldDownBoldLeftBoldRightBold: '╋',
196
+ lineUpDownBoldLeftBoldRightBold: '╈',
197
+ lineUpBoldDownLeftBoldRightBold: '╇',
198
+ lineUpBoldDownBoldLeftRightBold: '╊',
199
+ lineUpBoldDownBoldLeftBoldRight: '╉',
200
+ lineUpBoldDownLeftRight: '╀',
201
+ lineUpDownBoldLeftRight: '╁',
202
+ lineUpDownLeftBoldRight: '┽',
203
+ lineUpDownLeftRightBold: '┾',
204
+ lineUpBoldDownBoldLeftRight: '╂',
205
+ lineUpDownLeftBoldRightBold: '┿',
206
+ lineUpBoldDownLeftBoldRight: '╃',
207
+ lineUpBoldDownLeftRightBold: '╄',
208
+ lineUpDownBoldLeftBoldRight: '╅',
209
+ lineUpDownBoldLeftRightBold: '╆',
210
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
211
+ lineUpDoubleDownDoubleLeftRight: '╫',
212
+ lineUpDownLeftDoubleRightDouble: '╪',
213
+ lineCross: '╳',
214
+ lineBackslash: '╲',
215
+ lineSlash: '╱',
216
+ };
217
+ const specialMainSymbols = {
218
+ tick: '✔',
219
+ info: 'ℹ',
220
+ warning: '⚠',
221
+ cross: '✘',
222
+ squareSmall: '◻',
223
+ squareSmallFilled: '◼',
224
+ circle: '◯',
225
+ circleFilled: '◉',
226
+ circleDotted: '◌',
227
+ circleDouble: '◎',
228
+ circleCircle: 'ⓞ',
229
+ circleCross: 'ⓧ',
230
+ circlePipe: 'Ⓘ',
231
+ radioOn: '◉',
232
+ radioOff: '◯',
233
+ checkboxOn: '☒',
234
+ checkboxOff: '☐',
235
+ checkboxCircleOn: 'ⓧ',
236
+ checkboxCircleOff: 'Ⓘ',
237
+ pointer: '❯',
238
+ triangleUpOutline: '△',
239
+ triangleLeft: '◀',
240
+ triangleRight: '▶',
241
+ lozenge: '◆',
242
+ lozengeOutline: '◇',
243
+ hamburger: '☰',
244
+ smiley: '㋡',
245
+ mustache: '෴',
246
+ star: '★',
247
+ play: '▶',
248
+ nodejs: '⬢',
249
+ oneSeventh: '⅐',
250
+ oneNinth: '⅑',
251
+ oneTenth: '⅒',
252
+ };
253
+ const specialFallbackSymbols = {
254
+ tick: '√',
255
+ info: 'i',
256
+ warning: '‼',
257
+ cross: '×',
258
+ squareSmall: '□',
259
+ squareSmallFilled: '■',
260
+ circle: '( )',
261
+ circleFilled: '(*)',
262
+ circleDotted: '( )',
263
+ circleDouble: '( )',
264
+ circleCircle: '(○)',
265
+ circleCross: '(×)',
266
+ circlePipe: '(│)',
267
+ radioOn: '(*)',
268
+ radioOff: '( )',
269
+ checkboxOn: '[×]',
270
+ checkboxOff: '[ ]',
271
+ checkboxCircleOn: '(×)',
272
+ checkboxCircleOff: '( )',
273
+ pointer: '>',
274
+ triangleUpOutline: '∆',
275
+ triangleLeft: '◄',
276
+ triangleRight: '►',
277
+ lozenge: '♦',
278
+ lozengeOutline: '◊',
279
+ hamburger: '≡',
280
+ smiley: '☺',
281
+ mustache: '┌─┐',
282
+ star: '✶',
283
+ play: '►',
284
+ nodejs: '♦',
285
+ oneSeventh: '1/7',
286
+ oneNinth: '1/9',
287
+ oneTenth: '1/10',
288
+ };
289
+ export const mainSymbols = {
290
+ ...common,
291
+ ...specialMainSymbols,
292
+ };
293
+ export const fallbackSymbols = {
294
+ ...common,
295
+ ...specialFallbackSymbols,
296
+ };
297
+ const shouldUseMain = isUnicodeSupported();
298
+ const figures = shouldUseMain
299
+ ? mainSymbols
300
+ : fallbackSymbols;
301
+ export default figures;
302
+ const replacements = Object.entries(specialMainSymbols);
303
+ // On terminals which do not support Unicode symbols, substitute them to other symbols
304
+ export const replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
305
+ if (useFallback) {
306
+ for (const [key, mainSymbol] of replacements) {
307
+ const fallbackSymbol = fallbackSymbols[key];
308
+ if (!fallbackSymbol) {
309
+ throw new Error(`Unable to find fallback for ${key}`);
310
+ }
311
+ string = string.replaceAll(mainSymbol, fallbackSymbol);
312
+ }
313
+ }
314
+ return string;
315
+ };
@@ -0,0 +1,346 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // packages/@cjser/inquirer__figures.tmp-26-1778156805293/dist/index.js
30
+ var index_exports = {};
31
+ __export(index_exports, {
32
+ default: () => index_default,
33
+ fallbackSymbols: () => fallbackSymbols,
34
+ mainSymbols: () => mainSymbols,
35
+ replaceSymbols: () => replaceSymbols
36
+ });
37
+ module.exports = __toCommonJS(index_exports);
38
+ var import_node_process = __toESM(require("node:process"), 1);
39
+ function isUnicodeSupported() {
40
+ if (!import_node_process.default.platform.startsWith("win")) {
41
+ return import_node_process.default.env["TERM"] !== "linux";
42
+ }
43
+ return Boolean(import_node_process.default.env["CI"]) || // CI environments generally support unicode
44
+ Boolean(import_node_process.default.env["WT_SESSION"]) || // Windows Terminal
45
+ Boolean(import_node_process.default.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
46
+ import_node_process.default.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
47
+ import_node_process.default.env["TERM_PROGRAM"] === "Terminus-Sublime" || import_node_process.default.env["TERM_PROGRAM"] === "vscode" || import_node_process.default.env["TERM"] === "xterm-256color" || import_node_process.default.env["TERM"] === "alacritty" || import_node_process.default.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
48
+ }
49
+ var common = {
50
+ circleQuestionMark: "(?)",
51
+ questionMarkPrefix: "(?)",
52
+ square: "\u2588",
53
+ squareDarkShade: "\u2593",
54
+ squareMediumShade: "\u2592",
55
+ squareLightShade: "\u2591",
56
+ squareTop: "\u2580",
57
+ squareBottom: "\u2584",
58
+ squareLeft: "\u258C",
59
+ squareRight: "\u2590",
60
+ squareCenter: "\u25A0",
61
+ bullet: "\u25CF",
62
+ dot: "\u2024",
63
+ ellipsis: "\u2026",
64
+ pointerSmall: "\u203A",
65
+ triangleUp: "\u25B2",
66
+ triangleUpSmall: "\u25B4",
67
+ triangleDown: "\u25BC",
68
+ triangleDownSmall: "\u25BE",
69
+ triangleLeftSmall: "\u25C2",
70
+ triangleRightSmall: "\u25B8",
71
+ home: "\u2302",
72
+ heart: "\u2665",
73
+ musicNote: "\u266A",
74
+ musicNoteBeamed: "\u266B",
75
+ arrowUp: "\u2191",
76
+ arrowDown: "\u2193",
77
+ arrowLeft: "\u2190",
78
+ arrowRight: "\u2192",
79
+ arrowLeftRight: "\u2194",
80
+ arrowUpDown: "\u2195",
81
+ almostEqual: "\u2248",
82
+ notEqual: "\u2260",
83
+ lessOrEqual: "\u2264",
84
+ greaterOrEqual: "\u2265",
85
+ identical: "\u2261",
86
+ infinity: "\u221E",
87
+ subscriptZero: "\u2080",
88
+ subscriptOne: "\u2081",
89
+ subscriptTwo: "\u2082",
90
+ subscriptThree: "\u2083",
91
+ subscriptFour: "\u2084",
92
+ subscriptFive: "\u2085",
93
+ subscriptSix: "\u2086",
94
+ subscriptSeven: "\u2087",
95
+ subscriptEight: "\u2088",
96
+ subscriptNine: "\u2089",
97
+ oneHalf: "\xBD",
98
+ oneThird: "\u2153",
99
+ oneQuarter: "\xBC",
100
+ oneFifth: "\u2155",
101
+ oneSixth: "\u2159",
102
+ oneEighth: "\u215B",
103
+ twoThirds: "\u2154",
104
+ twoFifths: "\u2156",
105
+ threeQuarters: "\xBE",
106
+ threeFifths: "\u2157",
107
+ threeEighths: "\u215C",
108
+ fourFifths: "\u2158",
109
+ fiveSixths: "\u215A",
110
+ fiveEighths: "\u215D",
111
+ sevenEighths: "\u215E",
112
+ line: "\u2500",
113
+ lineBold: "\u2501",
114
+ lineDouble: "\u2550",
115
+ lineDashed0: "\u2504",
116
+ lineDashed1: "\u2505",
117
+ lineDashed2: "\u2508",
118
+ lineDashed3: "\u2509",
119
+ lineDashed4: "\u254C",
120
+ lineDashed5: "\u254D",
121
+ lineDashed6: "\u2574",
122
+ lineDashed7: "\u2576",
123
+ lineDashed8: "\u2578",
124
+ lineDashed9: "\u257A",
125
+ lineDashed10: "\u257C",
126
+ lineDashed11: "\u257E",
127
+ lineDashed12: "\u2212",
128
+ lineDashed13: "\u2013",
129
+ lineDashed14: "\u2010",
130
+ lineDashed15: "\u2043",
131
+ lineVertical: "\u2502",
132
+ lineVerticalBold: "\u2503",
133
+ lineVerticalDouble: "\u2551",
134
+ lineVerticalDashed0: "\u2506",
135
+ lineVerticalDashed1: "\u2507",
136
+ lineVerticalDashed2: "\u250A",
137
+ lineVerticalDashed3: "\u250B",
138
+ lineVerticalDashed4: "\u254E",
139
+ lineVerticalDashed5: "\u254F",
140
+ lineVerticalDashed6: "\u2575",
141
+ lineVerticalDashed7: "\u2577",
142
+ lineVerticalDashed8: "\u2579",
143
+ lineVerticalDashed9: "\u257B",
144
+ lineVerticalDashed10: "\u257D",
145
+ lineVerticalDashed11: "\u257F",
146
+ lineDownLeft: "\u2510",
147
+ lineDownLeftArc: "\u256E",
148
+ lineDownBoldLeftBold: "\u2513",
149
+ lineDownBoldLeft: "\u2512",
150
+ lineDownLeftBold: "\u2511",
151
+ lineDownDoubleLeftDouble: "\u2557",
152
+ lineDownDoubleLeft: "\u2556",
153
+ lineDownLeftDouble: "\u2555",
154
+ lineDownRight: "\u250C",
155
+ lineDownRightArc: "\u256D",
156
+ lineDownBoldRightBold: "\u250F",
157
+ lineDownBoldRight: "\u250E",
158
+ lineDownRightBold: "\u250D",
159
+ lineDownDoubleRightDouble: "\u2554",
160
+ lineDownDoubleRight: "\u2553",
161
+ lineDownRightDouble: "\u2552",
162
+ lineUpLeft: "\u2518",
163
+ lineUpLeftArc: "\u256F",
164
+ lineUpBoldLeftBold: "\u251B",
165
+ lineUpBoldLeft: "\u251A",
166
+ lineUpLeftBold: "\u2519",
167
+ lineUpDoubleLeftDouble: "\u255D",
168
+ lineUpDoubleLeft: "\u255C",
169
+ lineUpLeftDouble: "\u255B",
170
+ lineUpRight: "\u2514",
171
+ lineUpRightArc: "\u2570",
172
+ lineUpBoldRightBold: "\u2517",
173
+ lineUpBoldRight: "\u2516",
174
+ lineUpRightBold: "\u2515",
175
+ lineUpDoubleRightDouble: "\u255A",
176
+ lineUpDoubleRight: "\u2559",
177
+ lineUpRightDouble: "\u2558",
178
+ lineUpDownLeft: "\u2524",
179
+ lineUpBoldDownBoldLeftBold: "\u252B",
180
+ lineUpBoldDownBoldLeft: "\u2528",
181
+ lineUpDownLeftBold: "\u2525",
182
+ lineUpBoldDownLeftBold: "\u2529",
183
+ lineUpDownBoldLeftBold: "\u252A",
184
+ lineUpDownBoldLeft: "\u2527",
185
+ lineUpBoldDownLeft: "\u2526",
186
+ lineUpDoubleDownDoubleLeftDouble: "\u2563",
187
+ lineUpDoubleDownDoubleLeft: "\u2562",
188
+ lineUpDownLeftDouble: "\u2561",
189
+ lineUpDownRight: "\u251C",
190
+ lineUpBoldDownBoldRightBold: "\u2523",
191
+ lineUpBoldDownBoldRight: "\u2520",
192
+ lineUpDownRightBold: "\u251D",
193
+ lineUpBoldDownRightBold: "\u2521",
194
+ lineUpDownBoldRightBold: "\u2522",
195
+ lineUpDownBoldRight: "\u251F",
196
+ lineUpBoldDownRight: "\u251E",
197
+ lineUpDoubleDownDoubleRightDouble: "\u2560",
198
+ lineUpDoubleDownDoubleRight: "\u255F",
199
+ lineUpDownRightDouble: "\u255E",
200
+ lineDownLeftRight: "\u252C",
201
+ lineDownBoldLeftBoldRightBold: "\u2533",
202
+ lineDownLeftBoldRightBold: "\u252F",
203
+ lineDownBoldLeftRight: "\u2530",
204
+ lineDownBoldLeftBoldRight: "\u2531",
205
+ lineDownBoldLeftRightBold: "\u2532",
206
+ lineDownLeftRightBold: "\u252E",
207
+ lineDownLeftBoldRight: "\u252D",
208
+ lineDownDoubleLeftDoubleRightDouble: "\u2566",
209
+ lineDownDoubleLeftRight: "\u2565",
210
+ lineDownLeftDoubleRightDouble: "\u2564",
211
+ lineUpLeftRight: "\u2534",
212
+ lineUpBoldLeftBoldRightBold: "\u253B",
213
+ lineUpLeftBoldRightBold: "\u2537",
214
+ lineUpBoldLeftRight: "\u2538",
215
+ lineUpBoldLeftBoldRight: "\u2539",
216
+ lineUpBoldLeftRightBold: "\u253A",
217
+ lineUpLeftRightBold: "\u2536",
218
+ lineUpLeftBoldRight: "\u2535",
219
+ lineUpDoubleLeftDoubleRightDouble: "\u2569",
220
+ lineUpDoubleLeftRight: "\u2568",
221
+ lineUpLeftDoubleRightDouble: "\u2567",
222
+ lineUpDownLeftRight: "\u253C",
223
+ lineUpBoldDownBoldLeftBoldRightBold: "\u254B",
224
+ lineUpDownBoldLeftBoldRightBold: "\u2548",
225
+ lineUpBoldDownLeftBoldRightBold: "\u2547",
226
+ lineUpBoldDownBoldLeftRightBold: "\u254A",
227
+ lineUpBoldDownBoldLeftBoldRight: "\u2549",
228
+ lineUpBoldDownLeftRight: "\u2540",
229
+ lineUpDownBoldLeftRight: "\u2541",
230
+ lineUpDownLeftBoldRight: "\u253D",
231
+ lineUpDownLeftRightBold: "\u253E",
232
+ lineUpBoldDownBoldLeftRight: "\u2542",
233
+ lineUpDownLeftBoldRightBold: "\u253F",
234
+ lineUpBoldDownLeftBoldRight: "\u2543",
235
+ lineUpBoldDownLeftRightBold: "\u2544",
236
+ lineUpDownBoldLeftBoldRight: "\u2545",
237
+ lineUpDownBoldLeftRightBold: "\u2546",
238
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "\u256C",
239
+ lineUpDoubleDownDoubleLeftRight: "\u256B",
240
+ lineUpDownLeftDoubleRightDouble: "\u256A",
241
+ lineCross: "\u2573",
242
+ lineBackslash: "\u2572",
243
+ lineSlash: "\u2571"
244
+ };
245
+ var specialMainSymbols = {
246
+ tick: "\u2714",
247
+ info: "\u2139",
248
+ warning: "\u26A0",
249
+ cross: "\u2718",
250
+ squareSmall: "\u25FB",
251
+ squareSmallFilled: "\u25FC",
252
+ circle: "\u25EF",
253
+ circleFilled: "\u25C9",
254
+ circleDotted: "\u25CC",
255
+ circleDouble: "\u25CE",
256
+ circleCircle: "\u24DE",
257
+ circleCross: "\u24E7",
258
+ circlePipe: "\u24BE",
259
+ radioOn: "\u25C9",
260
+ radioOff: "\u25EF",
261
+ checkboxOn: "\u2612",
262
+ checkboxOff: "\u2610",
263
+ checkboxCircleOn: "\u24E7",
264
+ checkboxCircleOff: "\u24BE",
265
+ pointer: "\u276F",
266
+ triangleUpOutline: "\u25B3",
267
+ triangleLeft: "\u25C0",
268
+ triangleRight: "\u25B6",
269
+ lozenge: "\u25C6",
270
+ lozengeOutline: "\u25C7",
271
+ hamburger: "\u2630",
272
+ smiley: "\u32E1",
273
+ mustache: "\u0DF4",
274
+ star: "\u2605",
275
+ play: "\u25B6",
276
+ nodejs: "\u2B22",
277
+ oneSeventh: "\u2150",
278
+ oneNinth: "\u2151",
279
+ oneTenth: "\u2152"
280
+ };
281
+ var specialFallbackSymbols = {
282
+ tick: "\u221A",
283
+ info: "i",
284
+ warning: "\u203C",
285
+ cross: "\xD7",
286
+ squareSmall: "\u25A1",
287
+ squareSmallFilled: "\u25A0",
288
+ circle: "( )",
289
+ circleFilled: "(*)",
290
+ circleDotted: "( )",
291
+ circleDouble: "( )",
292
+ circleCircle: "(\u25CB)",
293
+ circleCross: "(\xD7)",
294
+ circlePipe: "(\u2502)",
295
+ radioOn: "(*)",
296
+ radioOff: "( )",
297
+ checkboxOn: "[\xD7]",
298
+ checkboxOff: "[ ]",
299
+ checkboxCircleOn: "(\xD7)",
300
+ checkboxCircleOff: "( )",
301
+ pointer: ">",
302
+ triangleUpOutline: "\u2206",
303
+ triangleLeft: "\u25C4",
304
+ triangleRight: "\u25BA",
305
+ lozenge: "\u2666",
306
+ lozengeOutline: "\u25CA",
307
+ hamburger: "\u2261",
308
+ smiley: "\u263A",
309
+ mustache: "\u250C\u2500\u2510",
310
+ star: "\u2736",
311
+ play: "\u25BA",
312
+ nodejs: "\u2666",
313
+ oneSeventh: "1/7",
314
+ oneNinth: "1/9",
315
+ oneTenth: "1/10"
316
+ };
317
+ var mainSymbols = {
318
+ ...common,
319
+ ...specialMainSymbols
320
+ };
321
+ var fallbackSymbols = {
322
+ ...common,
323
+ ...specialFallbackSymbols
324
+ };
325
+ var shouldUseMain = isUnicodeSupported();
326
+ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
327
+ var index_default = figures;
328
+ var replacements = Object.entries(specialMainSymbols);
329
+ var replaceSymbols = (string, { useFallback = !shouldUseMain } = {}) => {
330
+ if (useFallback) {
331
+ for (const [key, mainSymbol] of replacements) {
332
+ const fallbackSymbol = fallbackSymbols[key];
333
+ if (!fallbackSymbol) {
334
+ throw new Error(`Unable to find fallback for ${key}`);
335
+ }
336
+ string = string.replaceAll(mainSymbol, fallbackSymbol);
337
+ }
338
+ }
339
+ return string;
340
+ };
341
+ // Annotate the CommonJS export names for ESM import in node:
342
+ 0 && (module.exports = {
343
+ fallbackSymbols,
344
+ mainSymbols,
345
+ replaceSymbols
346
+ });
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@cjser/inquirer__figures",
3
+ "version": "2.0.5-cjser.2",
4
+ "description": "Vendored version of figures, for CJS compatibility",
5
+ "keywords": [
6
+ "answer",
7
+ "answers",
8
+ "ask",
9
+ "base",
10
+ "cli",
11
+ "command",
12
+ "command-line",
13
+ "confirm",
14
+ "enquirer",
15
+ "generate",
16
+ "generator",
17
+ "hyper",
18
+ "input",
19
+ "inquire",
20
+ "inquirer",
21
+ "interface",
22
+ "iterm",
23
+ "javascript",
24
+ "menu",
25
+ "node",
26
+ "nodejs",
27
+ "prompt",
28
+ "promptly",
29
+ "prompts",
30
+ "question",
31
+ "readline",
32
+ "scaffold",
33
+ "scaffolder",
34
+ "scaffolding",
35
+ "stdin",
36
+ "stdout",
37
+ "terminal",
38
+ "tty",
39
+ "types",
40
+ "typescript",
41
+ "ui",
42
+ "yeoman",
43
+ "yo",
44
+ "zsh"
45
+ ],
46
+ "license": "MIT",
47
+ "author": "Simon Boudrias <admin@simonboudrias.com>",
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "https://code.moenext.com/3rdeye/cjser.git"
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "dist-cjser"
55
+ ],
56
+ "type": "module",
57
+ "sideEffects": false,
58
+ "exports": {
59
+ ".": {
60
+ "types": "./dist/index.d.ts",
61
+ "require": "./dist-cjser/index.cjs",
62
+ "default": "./dist/index.js"
63
+ },
64
+ "./package.json": "./package.json"
65
+ },
66
+ "publishConfig": {
67
+ "access": "public"
68
+ },
69
+ "scripts": {
70
+ "tsc": "tsc"
71
+ },
72
+ "devDependencies": {
73
+ "@types/node": "^25.5.2",
74
+ "typescript": "^6.0.2"
75
+ },
76
+ "engines": {
77
+ "node": ">=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0"
78
+ },
79
+ "main": "./dist-cjser/index.cjs",
80
+ "types": "./dist/index.d.ts",
81
+ "gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842",
82
+ "cjser": {
83
+ "sourceVersion": "2.0.5",
84
+ "cjserVersion": 2,
85
+ "original": {
86
+ "name": "@inquirer/figures",
87
+ "version": "2.0.5",
88
+ "main": "./dist/index.js",
89
+ "exports": {
90
+ ".": {
91
+ "types": "./dist/index.d.ts",
92
+ "default": "./dist/index.js"
93
+ },
94
+ "./package.json": "./package.json"
95
+ },
96
+ "repository": {
97
+ "type": "git",
98
+ "url": "https://github.com/SBoudrias/Inquirer.js.git"
99
+ },
100
+ "files": [
101
+ "dist"
102
+ ],
103
+ "scripts": {
104
+ "tsc": "tsc"
105
+ }
106
+ }
107
+ }
108
+ }