@dotpi/tools 2.9.2 → 2.9.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/dotpi_root/dist/@dotpi/avahi-monitor-module/LICENSE +28 -0
  2. package/dotpi_root/dist/@dotpi/avahi-monitor-module/package.json +3 -2
  3. package/dotpi_root/dist/@dotpi/javascript/LICENSE +28 -0
  4. package/dotpi_root/dist/@dotpi/javascript/package.json +3 -2
  5. package/dotpi_root/dist/@dotpi/module/LICENSE +28 -0
  6. package/dotpi_root/dist/@dotpi/module/package.json +4 -3
  7. package/dotpi_root/dist/@dotpi/module-module/LICENSE +28 -0
  8. package/dotpi_root/dist/@dotpi/module-module/package.json +5 -4
  9. package/package.json +5 -5
  10. package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +0 -279
  11. package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +0 -292
  12. package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +0 -9
  13. package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +0 -49
  14. package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +0 -337
  15. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +0 -201
  16. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +0 -180
  17. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +0 -273
  18. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +0 -206
  19. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +0 -70
  20. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +0 -16
  21. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +0 -34
  22. package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +0 -64
  23. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +0 -35
  24. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +0 -8
  25. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +0 -9
  26. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +0 -41
  27. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +0 -58
  28. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +0 -12
  29. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +0 -21
  30. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +0 -9
  31. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +0 -47
  32. package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +0 -35
  33. package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +0 -90
  34. package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +0 -55
  35. package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +0 -9
  36. package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +0 -52
  37. package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +0 -104
  38. package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +0 -31
  39. package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +0 -12
  40. package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +0 -9
  41. package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +0 -41
  42. package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +0 -57
  43. package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +0 -18
  44. package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +0 -26
  45. package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +0 -9
  46. package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +0 -49
  47. package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +0 -34
  48. package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +0 -279
  49. package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +0 -292
  50. package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +0 -9
  51. package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +0 -49
  52. package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +0 -337
  53. package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +0 -109
  54. package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +0 -207
  55. package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +0 -264
  56. package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +0 -9
  57. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
  58. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +0 -223
  59. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +0 -9
  60. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +0 -49
  61. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
  62. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +0 -14
  63. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +0 -29
  64. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +0 -9
  65. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +0 -7
  66. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +0 -49
  67. package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +0 -25
  68. package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +0 -94
  69. package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +0 -177
  70. package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +0 -1
  71. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +0 -201
  72. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +0 -180
  73. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +0 -273
  74. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +0 -206
  75. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +0 -70
  76. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +0 -16
  77. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +0 -34
  78. package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +0 -64
  79. package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +0 -35
  80. package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +0 -8
  81. package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +0 -9
  82. package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +0 -41
  83. package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +0 -58
  84. package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +0 -12
  85. package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +0 -21
  86. package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +0 -9
  87. package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +0 -47
  88. package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +0 -35
  89. package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +0 -90
  90. package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +0 -55
  91. package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +0 -9
  92. package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +0 -52
  93. package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +0 -104
  94. package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +0 -31
  95. package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +0 -12
  96. package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +0 -9
  97. package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +0 -41
  98. package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +0 -57
  99. package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +0 -51
  100. package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +0 -41
  101. package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +0 -9
  102. package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +0 -47
  103. package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +0 -74
  104. package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +0 -23
  105. package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +0 -9
  106. package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +0 -9
  107. package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +0 -39
  108. package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +0 -36
  109. package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +0 -18
  110. package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +0 -26
  111. package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +0 -9
  112. package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +0 -49
  113. package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +0 -34
@@ -1,292 +0,0 @@
1
- import isUnicodeSupported from 'is-unicode-supported';
2
-
3
- const common = {
4
- circleQuestionMark: '(?)',
5
- questionMarkPrefix: '(?)',
6
- square: '█',
7
- squareDarkShade: '▓',
8
- squareMediumShade: '▒',
9
- squareLightShade: '░',
10
- squareTop: '▀',
11
- squareBottom: '▄',
12
- squareLeft: '▌',
13
- squareRight: '▐',
14
- squareCenter: '■',
15
- bullet: '●',
16
- dot: '․',
17
- ellipsis: '…',
18
- pointerSmall: '›',
19
- triangleUp: '▲',
20
- triangleUpSmall: '▴',
21
- triangleDown: '▼',
22
- triangleDownSmall: '▾',
23
- triangleLeftSmall: '◂',
24
- triangleRightSmall: '▸',
25
- home: '⌂',
26
- heart: '♥',
27
- musicNote: '♪',
28
- musicNoteBeamed: '♫',
29
- arrowUp: '↑',
30
- arrowDown: '↓',
31
- arrowLeft: '←',
32
- arrowRight: '→',
33
- arrowLeftRight: '↔',
34
- arrowUpDown: '↕',
35
- almostEqual: '≈',
36
- notEqual: '≠',
37
- lessOrEqual: '≤',
38
- greaterOrEqual: '≥',
39
- identical: '≡',
40
- infinity: '∞',
41
- subscriptZero: '₀',
42
- subscriptOne: '₁',
43
- subscriptTwo: '₂',
44
- subscriptThree: '₃',
45
- subscriptFour: '₄',
46
- subscriptFive: '₅',
47
- subscriptSix: '₆',
48
- subscriptSeven: '₇',
49
- subscriptEight: '₈',
50
- subscriptNine: '₉',
51
- oneHalf: '½',
52
- oneThird: '⅓',
53
- oneQuarter: '¼',
54
- oneFifth: '⅕',
55
- oneSixth: '⅙',
56
- oneEighth: '⅛',
57
- twoThirds: '⅔',
58
- twoFifths: '⅖',
59
- threeQuarters: '¾',
60
- threeFifths: '⅗',
61
- threeEighths: '⅜',
62
- fourFifths: '⅘',
63
- fiveSixths: '⅚',
64
- fiveEighths: '⅝',
65
- sevenEighths: '⅞',
66
- line: '─',
67
- lineBold: '━',
68
- lineDouble: '═',
69
- lineDashed0: '┄',
70
- lineDashed1: '┅',
71
- lineDashed2: '┈',
72
- lineDashed3: '┉',
73
- lineDashed4: '╌',
74
- lineDashed5: '╍',
75
- lineDashed6: '╴',
76
- lineDashed7: '╶',
77
- lineDashed8: '╸',
78
- lineDashed9: '╺',
79
- lineDashed10: '╼',
80
- lineDashed11: '╾',
81
- lineDashed12: '−',
82
- lineDashed13: '–',
83
- lineDashed14: '‐',
84
- lineDashed15: '⁃',
85
- lineVertical: '│',
86
- lineVerticalBold: '┃',
87
- lineVerticalDouble: '║',
88
- lineVerticalDashed0: '┆',
89
- lineVerticalDashed1: '┇',
90
- lineVerticalDashed2: '┊',
91
- lineVerticalDashed3: '┋',
92
- lineVerticalDashed4: '╎',
93
- lineVerticalDashed5: '╏',
94
- lineVerticalDashed6: '╵',
95
- lineVerticalDashed7: '╷',
96
- lineVerticalDashed8: '╹',
97
- lineVerticalDashed9: '╻',
98
- lineVerticalDashed10: '╽',
99
- lineVerticalDashed11: '╿',
100
- lineDownLeft: '┐',
101
- lineDownLeftArc: '╮',
102
- lineDownBoldLeftBold: '┓',
103
- lineDownBoldLeft: '┒',
104
- lineDownLeftBold: '┑',
105
- lineDownDoubleLeftDouble: '╗',
106
- lineDownDoubleLeft: '╖',
107
- lineDownLeftDouble: '╕',
108
- lineDownRight: '┌',
109
- lineDownRightArc: '╭',
110
- lineDownBoldRightBold: '┏',
111
- lineDownBoldRight: '┎',
112
- lineDownRightBold: '┍',
113
- lineDownDoubleRightDouble: '╔',
114
- lineDownDoubleRight: '╓',
115
- lineDownRightDouble: '╒',
116
- lineUpLeft: '┘',
117
- lineUpLeftArc: '╯',
118
- lineUpBoldLeftBold: '┛',
119
- lineUpBoldLeft: '┚',
120
- lineUpLeftBold: '┙',
121
- lineUpDoubleLeftDouble: '╝',
122
- lineUpDoubleLeft: '╜',
123
- lineUpLeftDouble: '╛',
124
- lineUpRight: '└',
125
- lineUpRightArc: '╰',
126
- lineUpBoldRightBold: '┗',
127
- lineUpBoldRight: '┖',
128
- lineUpRightBold: '┕',
129
- lineUpDoubleRightDouble: '╚',
130
- lineUpDoubleRight: '╙',
131
- lineUpRightDouble: '╘',
132
- lineUpDownLeft: '┤',
133
- lineUpBoldDownBoldLeftBold: '┫',
134
- lineUpBoldDownBoldLeft: '┨',
135
- lineUpDownLeftBold: '┥',
136
- lineUpBoldDownLeftBold: '┩',
137
- lineUpDownBoldLeftBold: '┪',
138
- lineUpDownBoldLeft: '┧',
139
- lineUpBoldDownLeft: '┦',
140
- lineUpDoubleDownDoubleLeftDouble: '╣',
141
- lineUpDoubleDownDoubleLeft: '╢',
142
- lineUpDownLeftDouble: '╡',
143
- lineUpDownRight: '├',
144
- lineUpBoldDownBoldRightBold: '┣',
145
- lineUpBoldDownBoldRight: '┠',
146
- lineUpDownRightBold: '┝',
147
- lineUpBoldDownRightBold: '┡',
148
- lineUpDownBoldRightBold: '┢',
149
- lineUpDownBoldRight: '┟',
150
- lineUpBoldDownRight: '┞',
151
- lineUpDoubleDownDoubleRightDouble: '╠',
152
- lineUpDoubleDownDoubleRight: '╟',
153
- lineUpDownRightDouble: '╞',
154
- lineDownLeftRight: '┬',
155
- lineDownBoldLeftBoldRightBold: '┳',
156
- lineDownLeftBoldRightBold: '┯',
157
- lineDownBoldLeftRight: '┰',
158
- lineDownBoldLeftBoldRight: '┱',
159
- lineDownBoldLeftRightBold: '┲',
160
- lineDownLeftRightBold: '┮',
161
- lineDownLeftBoldRight: '┭',
162
- lineDownDoubleLeftDoubleRightDouble: '╦',
163
- lineDownDoubleLeftRight: '╥',
164
- lineDownLeftDoubleRightDouble: '╤',
165
- lineUpLeftRight: '┴',
166
- lineUpBoldLeftBoldRightBold: '┻',
167
- lineUpLeftBoldRightBold: '┷',
168
- lineUpBoldLeftRight: '┸',
169
- lineUpBoldLeftBoldRight: '┹',
170
- lineUpBoldLeftRightBold: '┺',
171
- lineUpLeftRightBold: '┶',
172
- lineUpLeftBoldRight: '┵',
173
- lineUpDoubleLeftDoubleRightDouble: '╩',
174
- lineUpDoubleLeftRight: '╨',
175
- lineUpLeftDoubleRightDouble: '╧',
176
- lineUpDownLeftRight: '┼',
177
- lineUpBoldDownBoldLeftBoldRightBold: '╋',
178
- lineUpDownBoldLeftBoldRightBold: '╈',
179
- lineUpBoldDownLeftBoldRightBold: '╇',
180
- lineUpBoldDownBoldLeftRightBold: '╊',
181
- lineUpBoldDownBoldLeftBoldRight: '╉',
182
- lineUpBoldDownLeftRight: '╀',
183
- lineUpDownBoldLeftRight: '╁',
184
- lineUpDownLeftBoldRight: '┽',
185
- lineUpDownLeftRightBold: '┾',
186
- lineUpBoldDownBoldLeftRight: '╂',
187
- lineUpDownLeftBoldRightBold: '┿',
188
- lineUpBoldDownLeftBoldRight: '╃',
189
- lineUpBoldDownLeftRightBold: '╄',
190
- lineUpDownBoldLeftBoldRight: '╅',
191
- lineUpDownBoldLeftRightBold: '╆',
192
- lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
193
- lineUpDoubleDownDoubleLeftRight: '╫',
194
- lineUpDownLeftDoubleRightDouble: '╪',
195
- lineCross: '╳',
196
- lineBackslash: '╲',
197
- lineSlash: '╱',
198
- };
199
-
200
- const specialMainSymbols = {
201
- tick: '✔',
202
- info: 'ℹ',
203
- warning: '⚠',
204
- cross: '✘',
205
- squareSmall: '◻',
206
- squareSmallFilled: '◼',
207
- circle: '◯',
208
- circleFilled: '◉',
209
- circleDotted: '◌',
210
- circleDouble: '◎',
211
- circleCircle: 'ⓞ',
212
- circleCross: 'ⓧ',
213
- circlePipe: 'Ⓘ',
214
- radioOn: '◉',
215
- radioOff: '◯',
216
- checkboxOn: '☒',
217
- checkboxOff: '☐',
218
- checkboxCircleOn: 'ⓧ',
219
- checkboxCircleOff: 'Ⓘ',
220
- pointer: '❯',
221
- triangleUpOutline: '△',
222
- triangleLeft: '◀',
223
- triangleRight: '▶',
224
- lozenge: '◆',
225
- lozengeOutline: '◇',
226
- hamburger: '☰',
227
- smiley: '㋡',
228
- mustache: '෴',
229
- star: '★',
230
- play: '▶',
231
- nodejs: '⬢',
232
- oneSeventh: '⅐',
233
- oneNinth: '⅑',
234
- oneTenth: '⅒',
235
- };
236
-
237
- const specialFallbackSymbols = {
238
- tick: '√',
239
- info: 'i',
240
- warning: '‼',
241
- cross: '×',
242
- squareSmall: '□',
243
- squareSmallFilled: '■',
244
- circle: '( )',
245
- circleFilled: '(*)',
246
- circleDotted: '( )',
247
- circleDouble: '( )',
248
- circleCircle: '(○)',
249
- circleCross: '(×)',
250
- circlePipe: '(│)',
251
- radioOn: '(*)',
252
- radioOff: '( )',
253
- checkboxOn: '[×]',
254
- checkboxOff: '[ ]',
255
- checkboxCircleOn: '(×)',
256
- checkboxCircleOff: '( )',
257
- pointer: '>',
258
- triangleUpOutline: '∆',
259
- triangleLeft: '◄',
260
- triangleRight: '►',
261
- lozenge: '♦',
262
- lozengeOutline: '◊',
263
- hamburger: '≡',
264
- smiley: '☺',
265
- mustache: '┌─┐',
266
- star: '✶',
267
- play: '►',
268
- nodejs: '♦',
269
- oneSeventh: '1/7',
270
- oneNinth: '1/9',
271
- oneTenth: '1/10',
272
- };
273
-
274
- export const mainSymbols = {...common, ...specialMainSymbols};
275
- export const fallbackSymbols = {...common, ...specialFallbackSymbols};
276
-
277
- const shouldUseMain = isUnicodeSupported();
278
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
279
- export default figures;
280
-
281
- const replacements = Object.entries(specialMainSymbols);
282
-
283
- // On terminals which do not support Unicode symbols, substitute them to other symbols
284
- export const replaceSymbols = (string, {useFallback = !shouldUseMain} = {}) => {
285
- if (useFallback) {
286
- for (const [key, mainSymbol] of replacements) {
287
- string = string.replaceAll(mainSymbol, fallbackSymbols[key]);
288
- }
289
- }
290
-
291
- return string;
292
- };
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,49 +0,0 @@
1
- {
2
- "name": "figures",
3
- "version": "6.1.0",
4
- "description": "Unicode symbols with fallbacks for older terminals",
5
- "license": "MIT",
6
- "repository": "sindresorhus/figures",
7
- "funding": "https://github.com/sponsors/sindresorhus",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": {
15
- "types": "./index.d.ts",
16
- "default": "./index.js"
17
- },
18
- "sideEffects": false,
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "scripts": {
23
- "test": "xo && ava && tsd"
24
- },
25
- "files": [
26
- "index.js",
27
- "index.d.ts"
28
- ],
29
- "keywords": [
30
- "unicode",
31
- "cli",
32
- "cmd",
33
- "command-line",
34
- "characters",
35
- "symbol",
36
- "symbols",
37
- "figure",
38
- "figures",
39
- "fallback"
40
- ],
41
- "dependencies": {
42
- "is-unicode-supported": "^2.0.0"
43
- },
44
- "devDependencies": {
45
- "ava": "^5.3.1",
46
- "tsd": "^0.29.0",
47
- "xo": "^0.56.0"
48
- }
49
- }
@@ -1,337 +0,0 @@
1
- # figures
2
-
3
- > Unicode symbols with fallbacks for older terminals
4
-
5
- [![](screenshot.png)](index.js)
6
-
7
- [*and more...*](index.js)
8
-
9
- Terminals such as Windows Console Host (and CMD) only support a [limited character set](http://en.wikipedia.org/wiki/Code_page_437).
10
-
11
- ## Install
12
-
13
- ```sh
14
- npm install figures
15
- ```
16
-
17
- ## Usage
18
-
19
- ```js
20
- import figures, {mainSymbols, fallbackSymbols, replaceSymbols} from 'figures';
21
-
22
- console.log(figures.tick);
23
- // On terminals with Unicode symbols: ✔
24
- // On other terminals: √
25
-
26
- console.log(mainSymbols.tick);
27
- // On all terminals: ✔
28
-
29
- console.log(fallbackSymbols.tick);
30
- // On all terminals: √
31
-
32
- console.log(replaceSymbols('✔ check'));
33
- // On terminals with Unicode symbols: ✔ check
34
- // On other terminals: √ check
35
- ```
36
-
37
- ## API
38
-
39
- ### figures (default export)
40
-
41
- Type: `object`
42
-
43
- Symbols to use on any terminal.
44
-
45
- ### mainSymbols
46
-
47
- Symbols to use when the terminal supports Unicode symbols.
48
-
49
- ### fallbackSymbols
50
-
51
- Symbols to use when the terminal does not support Unicode symbols.
52
-
53
- ### replaceSymbols(string, options?)
54
-
55
- Returns the input with replaced fallback symbols if the terminal has poor Unicode support.
56
-
57
- All the below [figures](#figures) are attached to the default export as shown in the example above.
58
-
59
- #### string
60
-
61
- Type: `string`
62
-
63
- String where the Unicode symbols will be replaced with fallback symbols depending on the terminal.
64
-
65
- #### options
66
-
67
- Type: `object`
68
-
69
- ##### useFallback
70
-
71
- Type: `boolean`\
72
- Default: `true` if the terminal has poor Unicode support
73
-
74
- Whether to replace symbols with fallbacks.
75
-
76
- This can be set to `true` to always use fallback symbols, whether the terminal has poor Unicode support or not.
77
-
78
- ```js
79
- import {replaceSymbols} from 'figures';
80
-
81
- console.log(replaceSymbols('✔ check', {useFallback: true}));
82
- // On terminals with Unicode symbols: √ check
83
- // On other terminals: √ check
84
- ```
85
-
86
- ## Figures
87
-
88
- `Fallback` characters are only shown when they differ from the `Main` ones.
89
-
90
- | Name | Main | Fallback |
91
- | ------------------------------------------- | :--: | :------: |
92
- | tick | `✔` | `√` |
93
- | info | `ℹ` | `i` |
94
- | warning | `⚠` | `‼` |
95
- | cross | `✘` | `×` |
96
- | square | `█` | |
97
- | squareSmall | `◻` | `□` |
98
- | squareSmallFilled | `◼` | `■` |
99
- | squareDarkShade | `▓` | |
100
- | squareMediumShade | `▒` | |
101
- | squareLightShade | `░` | |
102
- | squareTop | `▀` | |
103
- | squareBottom | `▄` | |
104
- | squareLeft | `▌` | |
105
- | squareRight | `▐` | |
106
- | squareCenter | `■` | |
107
- | circle | `◯` | `( )` |
108
- | circleFilled | `◉` | `(*)` |
109
- | circleDotted | `◌` | `( )` |
110
- | circleDouble | `◎` | `( )` |
111
- | circleCircle | `ⓞ` | `(○)` |
112
- | circleCross | `ⓧ` | `(×)` |
113
- | circlePipe | `Ⓘ` | `(│)` |
114
- | circleQuestionMark | `?⃝ ` | `(?)` |
115
- | radioOn | `◉` | `(*)` |
116
- | radioOff | `◯` | `( )` |
117
- | checkboxOn | `☒` | `[×]` |
118
- | checkboxOff | `☐` | `[ ]` |
119
- | checkboxCircleOn | `ⓧ` | `(×)` |
120
- | checkboxCircleOff | `Ⓘ` | `( )` |
121
- | questionMarkPrefix | `?⃝ ` | `?` |
122
- | bullet | `●` | |
123
- | dot | `․` | |
124
- | ellipsis | `…` | |
125
- | pointer | `❯` | `>` |
126
- | pointerSmall | `›` | `›` |
127
- | triangleUp | `▲` | |
128
- | triangleUpSmall | `▴` | |
129
- | triangleUpOutline | `△` | `∆` |
130
- | triangleDown | `▼` | |
131
- | triangleDownSmall | `▾` | |
132
- | triangleLeft | `◀` | `◄` |
133
- | triangleLeftSmall | `◂` | |
134
- | triangleRight | `▶` | `►` |
135
- | triangleRightSmall | `▸` | |
136
- | lozenge | `◆` | `♦` |
137
- | lozengeOutline | `◇` | `◊` |
138
- | home | `⌂` | |
139
- | hamburger | `☰` | `≡` |
140
- | smiley | `㋡` | `☺` |
141
- | mustache | `෴` | `┌─┐` |
142
- | heart | `♥` | |
143
- | star | `★` | `✶` |
144
- | play | `▶` | `►` |
145
- | musicNote | `♪` | |
146
- | musicNoteBeamed | `♫` | |
147
- | nodejs | `⬢` | `♦` |
148
- | arrowUp | `↑` | |
149
- | arrowDown | `↓` | |
150
- | arrowLeft | `←` | |
151
- | arrowRight | `→` | |
152
- | arrowLeftRight | `↔` | |
153
- | arrowUpDown | `↕` | |
154
- | almostEqual | `≈` | |
155
- | notEqual | `≠` | |
156
- | lessOrEqual | `≤` | |
157
- | greaterOrEqual | `≥` | |
158
- | identical | `≡` | |
159
- | infinity | `∞` | |
160
- | subscriptZero | `₀` | |
161
- | subscriptOne | `₁` | |
162
- | subscriptTwo | `₂` | |
163
- | subscriptThree | `₃` | |
164
- | subscriptFour | `₄` | |
165
- | subscriptFive | `₅` | |
166
- | subscriptSix | `₆` | |
167
- | subscriptSeven | `₇` | |
168
- | subscriptEight | `₈` | |
169
- | subscriptNine | `₉` | |
170
- | oneHalf | `½` | |
171
- | oneThird | `⅓` | |
172
- | oneQuarter | `¼` | |
173
- | oneFifth | `⅕` | |
174
- | oneSixth | `⅙` | |
175
- | oneSeventh | `⅐` | `1/7` |
176
- | oneEighth | `⅛` | |
177
- | oneNinth | `⅑` | `1/9` |
178
- | oneTenth | `⅒` | `1/10` |
179
- | twoThirds | `⅔` | |
180
- | twoFifths | `⅖` | |
181
- | threeQuarters | `¾` | |
182
- | threeFifths | `⅗` | |
183
- | threeEighths | `⅜` | |
184
- | fourFifths | `⅘` | |
185
- | fiveSixths | `⅚` | |
186
- | fiveEighths | `⅝` | |
187
- | sevenEighths | `⅞` | |
188
- | line | `─` | |
189
- | lineBold | `━` | |
190
- | lineDouble | `═` | |
191
- | lineDashed0 | `┄` | |
192
- | lineDashed1 | `┅` | |
193
- | lineDashed2 | `┈` | |
194
- | lineDashed3 | `┉` | |
195
- | lineDashed4 | `╌` | |
196
- | lineDashed5 | `╍` | |
197
- | lineDashed6 | `╴` | |
198
- | lineDashed7 | `╶` | |
199
- | lineDashed8 | `╸` | |
200
- | lineDashed9 | `╺` | |
201
- | lineDashed10 | `╼` | |
202
- | lineDashed11 | `╾` | |
203
- | lineDashed12 | `−` | |
204
- | lineDashed13 | `–` | |
205
- | lineDashed14 | `‐` | |
206
- | lineDashed15 | `⁃` | |
207
- | lineVertical | `│` | |
208
- | lineVerticalBold | `┃` | |
209
- | lineVerticalDouble | `║` | |
210
- | lineVerticalDashed0 | `┆` | |
211
- | lineVerticalDashed1 | `┇` | |
212
- | lineVerticalDashed2 | `┊` | |
213
- | lineVerticalDashed3 | `┋` | |
214
- | lineVerticalDashed4 | `╎` | |
215
- | lineVerticalDashed5 | `╏` | |
216
- | lineVerticalDashed6 | `╵` | |
217
- | lineVerticalDashed7 | `╷` | |
218
- | lineVerticalDashed8 | `╹` | |
219
- | lineVerticalDashed9 | `╻` | |
220
- | lineVerticalDashed10 | `╽` | |
221
- | lineVerticalDashed11 | `╿` | |
222
- | lineDownLeft | `┐` | |
223
- | lineDownLeftArc | `╮` | |
224
- | lineDownBoldLeftBold | `┓` | |
225
- | lineDownBoldLeft | `┒` | |
226
- | lineDownLeftBold | `┑` | |
227
- | lineDownDoubleLeftDouble | `╗` | |
228
- | lineDownDoubleLeft | `╖` | |
229
- | lineDownLeftDouble | `╕` | |
230
- | lineDownRight | `┌` | |
231
- | lineDownRightArc | `╭` | |
232
- | lineDownBoldRightBold | `┏` | |
233
- | lineDownBoldRight | `┎` | |
234
- | lineDownRightBold | `┍` | |
235
- | lineDownDoubleRightDouble | `╔` | |
236
- | lineDownDoubleRight | `╓` | |
237
- | lineDownRightDouble | `╒` | |
238
- | lineUpLeft | `┘` | |
239
- | lineUpLeftArc | `╯` | |
240
- | lineUpBoldLeftBold | `┛` | |
241
- | lineUpBoldLeft | `┚` | |
242
- | lineUpLeftBold | `┙` | |
243
- | lineUpDoubleLeftDouble | `╝` | |
244
- | lineUpDoubleLeft | `╜` | |
245
- | lineUpLeftDouble | `╛` | |
246
- | lineUpRight | `└` | |
247
- | lineUpRightArc | `╰` | |
248
- | lineUpBoldRightBold | `┗` | |
249
- | lineUpBoldRight | `┖` | |
250
- | lineUpRightBold | `┕` | |
251
- | lineUpDoubleRightDouble | `╚` | |
252
- | lineUpDoubleRight | `╙` | |
253
- | lineUpRightDouble | `╘` | |
254
- | lineUpDownLeft | `┤` | |
255
- | lineUpBoldDownBoldLeftBold | `┫` | |
256
- | lineUpBoldDownBoldLeft | `┨` | |
257
- | lineUpDownLeftBold | `┥` | |
258
- | lineUpBoldDownLeftBold | `┩` | |
259
- | lineUpDownBoldLeftBold | `┪` | |
260
- | lineUpDownBoldLeft | `┧` | |
261
- | lineUpBoldDownLeft | `┦` | |
262
- | lineUpDoubleDownDoubleLeftDouble | `╣` | |
263
- | lineUpDoubleDownDoubleLeft | `╢` | |
264
- | lineUpDownLeftDouble | `╡` | |
265
- | lineUpDownRight | `├` | |
266
- | lineUpBoldDownBoldRightBold | `┣` | |
267
- | lineUpBoldDownBoldRight | `┠` | |
268
- | lineUpDownRightBold | `┝` | |
269
- | lineUpBoldDownRightBold | `┡` | |
270
- | lineUpDownBoldRightBold | `┢` | |
271
- | lineUpDownBoldRight | `┟` | |
272
- | lineUpBoldDownRight | `┞` | |
273
- | lineUpDoubleDownDoubleRightDouble | `╠` | |
274
- | lineUpDoubleDownDoubleRight | `╟` | |
275
- | lineUpDownRightDouble | `╞` | |
276
- | lineDownLeftRight | `┬` | |
277
- | lineDownBoldLeftBoldRightBold | `┳` | |
278
- | lineDownLeftBoldRightBold | `┯` | |
279
- | lineDownBoldLeftRight | `┰` | |
280
- | lineDownBoldLeftBoldRight | `┱` | |
281
- | lineDownBoldLeftRightBold | `┲` | |
282
- | lineDownLeftRightBold | `┮` | |
283
- | lineDownLeftBoldRight | `┭` | |
284
- | lineDownDoubleLeftDoubleRightDouble | `╦` | |
285
- | lineDownDoubleLeftRight | `╥` | |
286
- | lineDownLeftDoubleRightDouble | `╤` | |
287
- | lineUpLeftRight | `┴` | |
288
- | lineUpBoldLeftBoldRightBold | `┻` | |
289
- | lineUpLeftBoldRightBold | `┷` | |
290
- | lineUpBoldLeftRight | `┸` | |
291
- | lineUpBoldLeftBoldRight | `┹` | |
292
- | lineUpBoldLeftRightBold | `┺` | |
293
- | lineUpLeftRightBold | `┶` | |
294
- | lineUpLeftBoldRight | `┵` | |
295
- | lineUpDoubleLeftDoubleRightDouble | `╩` | |
296
- | lineUpDoubleLeftRight | `╨` | |
297
- | lineUpLeftDoubleRightDouble | `╧` | |
298
- | lineUpDownLeftRight | `┼` | |
299
- | lineUpBoldDownBoldLeftBoldRightBold | `╋` | |
300
- | lineUpDownBoldLeftBoldRightBold | `╈` | |
301
- | lineUpBoldDownLeftBoldRightBold | `╇` | |
302
- | lineUpBoldDownBoldLeftRightBold | `╊` | |
303
- | lineUpBoldDownBoldLeftBoldRight | `╉` | |
304
- | lineUpBoldDownLeftRight | `╀` | |
305
- | lineUpDownBoldLeftRight | `╁` | |
306
- | lineUpDownLeftBoldRight | `┽` | |
307
- | lineUpDownLeftRightBold | `┾` | |
308
- | lineUpBoldDownBoldLeftRight | `╂` | |
309
- | lineUpDownLeftBoldRightBold | `┿` | |
310
- | lineUpBoldDownLeftBoldRight | `╃` | |
311
- | lineUpBoldDownLeftRightBold | `╄` | |
312
- | lineUpDownBoldLeftBoldRight | `╅` | |
313
- | lineUpDownBoldLeftRightBold | `╆` | |
314
- | lineUpDoubleDownDoubleLeftDoubleRightDouble | `╬` | |
315
- | lineUpDoubleDownDoubleLeftRight | `╫` | |
316
- | lineUpDownLeftDoubleRightDouble | `╪` | |
317
- | lineCross | `╳` | |
318
- | lineBackslash | `╲` | |
319
- | lineSlash | `╱` | |
320
-
321
- ## Other characters
322
-
323
- If you cannot find the character you're looking for in the table above, please look at this full list of [cross-platform terminal characters](https://github.com/ehmicky/cross-platform-terminal-characters).
324
-
325
- ## Unsupported terminals
326
-
327
- The following terminals are not officially supported:
328
-
329
- - xterm
330
- - Linux Terminal (kernel)
331
- - cmder
332
-
333
- They can display most but not all of the symbols listed above.
334
-
335
- ## Related
336
-
337
- - [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels