stack-analyze 1.3.9 → 1.4.1

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/CHANGELOG.md CHANGED
@@ -2,346 +2,312 @@
2
2
 
3
3
  stack-analyze all version and notable changes, fixed, remove and new additions in code.
4
4
 
5
- ## generation 4 (ver. 1.3.0 - )
6
-
7
- ### version 1.3.9
8
-
9
- #### Added
10
- - added new tool (tcg pocket card info):
11
- - @tcgdex/sdk *new module*
12
-
13
- ### version 1.3.8
14
-
15
- #### Changed
16
- - replace all arrays option instead using keys object for fast adaptible.
17
- - change anime quotes to taylor swift quotes (neo-jquery easter egg)
18
-
19
- ### version 1.3.7
20
-
21
- #### Added
22
- - quotes new tool
23
-
24
- #### Changed
25
- - some files using new types jsdocs via import
26
- - cpuinfo using separetd of cache
27
-
28
- ### version 1.3.6 (5th aniversary)
29
-
30
- #### Added
31
- - new wallpaers pack:
32
- - tsuky no emily.
33
- - ancient mistery.
34
-
35
- #### Changed
36
- - simplify in how play for poker rule tool.
37
-
38
- #### fixed
39
- - fixed download wallpapers.
40
- - cli.js fixed jsdoc.
41
-
42
-
43
- ### version 1.3.5
44
- #### Added
45
- - new tool poker game rule selector "poker rule".
46
-
47
- #### changed
48
- - change inquirer to @inquirer/prompts.
49
- - about.js file now using esm with json modules.
50
- - all tools now using new inquirer methods.
51
-
52
- #### fixed
53
- - add question for anime search tool.
54
-
55
- #### remove
56
- - remove validations folder.
57
-
58
- ### version 1.3.4
59
- #### changed
60
- - new ui cli for potter search tool & save file.
61
-
62
- ### version 1.3.3
63
- #### Added
64
- - add potter search (harry potter npx characters)
65
- #### changed
66
- - update linter
67
-
68
- ### version 1.3.2
69
- #### Added
70
- - title for stack menu tools
71
-
72
- ### version 1.3.1
73
- #### Added
74
- - seyyahi2 wallpapers (this pack is from album app)
75
- #### changed
76
- - add new view field is total track and id
77
-
78
- ### version 1.3.0
79
- #### Added
80
- - deezer search tool
5
+ ## generation 5 (ver. 1.4.0 -)
6
+ - version 1.4.0
7
+ - Added:
8
+ - new tool magic ball
9
+ - version 1.4.1
10
+ - Added:
11
+ - stations info
12
+ - Changed:
13
+ - change from basic console.log for magic ball now using boxen
14
+ - update sets for tcgp info tool
15
+
16
+ ## generation 4 (ver. 1.3.0 - 1.3.9)
17
+
18
+ - version 1.3.9
19
+ - Added:
20
+ - added new tool (tcg pocket card info)
21
+ - @tcgdex/sdk *new module*
22
+ - version 1.3.8
23
+ - Changed:
24
+ - replace all arrays option instead using keys object for fast adaptible.
25
+ - change anime quotes to taylor swift quotes (neo-jquery easter egg)
26
+ - version 1.3.7
27
+ - Added:
28
+ - quotes new tool
29
+ - Changed:
30
+ - some files using new types jsdocs via import
31
+ - cpuinfo using separetd of cache
32
+ - version 1.3.6 (5th aniversary)
33
+ - Added:
34
+ - new wallpaers pack:
35
+ - tsuky no emily.
36
+ - ancient mistery.
37
+ - Changed:
38
+ - simplify in how play for poker rule tool.
39
+ - fixed:
40
+ - fixed download wallpapers.
41
+ - cli.js fixed jsdoc.
42
+ - version 1.3.5
43
+ - Added:
44
+ - new tool poker game rule selector "poker rule".
45
+ - changed:
46
+ - change inquirer to @inquirer/prompts.
47
+ - about.js file now using esm with json modules.
48
+ - all tools now using new inquirer methods.
49
+ - fixed:
50
+ - add question for anime search tool.
51
+ - remove:
52
+ - remove validations folder.
53
+ - version 1.3.4
54
+ - changed:
55
+ - new ui cli for potter search tool & save file.
56
+ - version 1.3.3
57
+ - Added:
58
+ - add potter search (harry potter npx characters)
59
+ - changed:
60
+ - update linter
61
+ - version 1.3.2
62
+ - Added:
63
+ - title for stack menu tools
64
+ - version 1.3.1
65
+ - Added:
66
+ - seyyahi2 wallpapers (this pack is from album app)
67
+ - changed:
68
+ - add new view field is total track and id
69
+ - version 1.3.0
70
+ - Added:
71
+ - deezer search tool
81
72
 
82
73
  ## generation 3 (ver. 1.2.0 - 1.2.9)
83
74
 
84
- ### version 1.2.9
85
- #### Added
86
- - css validate
87
- #### changed
88
- - changed wappalyzer module
89
-
90
- ### version 1.2.8
91
- #### Added
92
- - dimensions wallpaper download
93
- #### changed
94
- - renove download wallpaper function
95
- - about script using cjs
96
-
97
- ### version 1.2.7
98
- #### Added
99
- - wallpaper tool download (sol, moon)
100
- #### changed
101
- - default case in range color 91 to 100
102
-
103
- ### version 1.2.6
104
- #### Changed
105
- - redesign poke info tool
106
- - remove module info in readme
107
-
108
- ### version 1.2.5
109
- #### Added
110
- - pokemon info tool.
111
- #### Changed
112
- - update script test.
113
- - remove the cjs and mjs files.
114
- - renove changelog based in generations similar to neo-jquery.
115
- #### fixed
116
- - add examples in twitch info users.
117
- - fixed the bug create hardware info file.
118
-
119
- ### version 1.2.4
120
- #### Changed
121
- - remove jest module by node:test,
122
- - web scraping & github info using native fetch api & not axios,
123
- #### fixed
124
- - fixed errors in:
125
- - single stack.
126
- - multiple.
127
- - hardware information.
128
- - single & multiple stack using sub await mode
129
-
130
- ### version 1.2.3
131
- #### Added
132
- - bundlephobia info tool
133
- #### Changed
134
- - change write json to csv in hardware information
135
-
136
- ### version 1.2.2
137
- #### Added
138
- - add save file function for the tools
139
- #### Changed
140
- - change the hash table to unique function in hardware information
141
- #### Fixed
142
- - fixed to unique user to multiple users with split params
143
-
144
- ### version 1.2.1
145
- #### Fixed
146
- - rewrite form arrow functions to named function with export default.
147
- - rewrite some test functions.
148
- - add regexp form bitly info tool
149
- #### Changed
150
- - renove menu now using categories.
151
- - add api params.
152
- - comeback multibar from pagespeed tool
153
-
154
- ### version 1.2.0
155
- #### Added
156
- - new tool password generator
157
- #### Fixed
158
- - update anime search tool
159
- - the files modules now using callbacks and remove no using vars
160
- #### Changed
161
- - the web scraping tool decided to use the question returns to the main menu instead of going to the main menu
75
+ - version 1.2.9
76
+ - Added:
77
+ - css validate
78
+ - changed:
79
+ - changed wappalyzer module
80
+ - version 1.2.8
81
+ - Added:
82
+ - dimensions wallpaper download
83
+ - changed:
84
+ - renove download wallpaper function
85
+ - about script using cjs
86
+ - version 1.2.7
87
+ - Added:
88
+ - wallpaper tool download (sol, moon)
89
+ - changed:
90
+ - default case in range color 91 to 100
91
+ - version 1.2.6
92
+ - Changed:
93
+ - redesign poke info tool
94
+ - remove module info in readme
95
+ - version 1.2.5
96
+ - Added:
97
+ - pokemon info tool.
98
+ - Changed:
99
+ - update script test.
100
+ - remove the cjs and mjs files.
101
+ - renove changelog based in generations similar to neo-jquery.
102
+ - fixed:
103
+ - add examples in twitch info users.
104
+ - fixed the bug create hardware info file.
105
+ - version 1.2.4
106
+ - Changed:
107
+ - remove jest module by node:test,
108
+ - web scraping & github info using native fetch api & not axios,
109
+ - fixed:
110
+ - fixed errors in:
111
+ - single stack.
112
+ - multiple.
113
+ - hardware information.
114
+ - single & multiple stack using sub await mode
115
+ - version 1.2.3
116
+ - Added:
117
+ - bundlephobia info tool
118
+ - Changed:
119
+ - change write json to csv in hardware information
120
+ - version 1.2.2
121
+ - Added:
122
+ - add save file function for the tools
123
+ - Changed:
124
+ - change the hash table to unique function in hardware information
125
+ - Fixed:
126
+ - fixed to unique user to multiple users with split params
127
+ - version 1.2.1
128
+ - Fixed:
129
+ - rewrite form arrow functions to named function with export default.
130
+ - rewrite some test functions.
131
+ - add regexp form bitly info tool
132
+ - Changed:
133
+ - renove menu now using categories.
134
+ - add api params.
135
+ - comeback multibar from pagespeed tool
136
+ - version 1.2.0
137
+ - Added:
138
+ - new tool password generator
139
+ - Fixed:
140
+ - update anime search tool
141
+ - the files modules now using callbacks and remove no using vars
142
+ - Changed:
143
+ - the web scraping tool decided to use the question returns to the main menu instead of going to the main menu
162
144
 
163
145
  ## generation 2 (ver. 1.1.0 - 1.1.9)
164
146
 
165
- ### version 1.1.9
166
- #### Added
167
- - new module cheerio
168
- - new tool webscraping
169
- - new test
170
- #### Fixed
171
- - rewirte axios import
172
- #### Changed
173
- - hardware information change from functions to hash table
174
- - about now is hash table
175
- - now using the function printTable avoid overwritting.
176
- - remove jsdocs the modules files
177
- #### remove
178
- - remove models console-table-printer
179
- - remove hash tables
180
-
181
- ### version 1.1.8
182
- #### Fixed
183
- - restructure all tools as a hash table with promises except the tool hardware information and about section
184
- - update all modules
185
- #### Changed
186
- - remove the module coingecko-api
187
- - remove process.env variables to writting manual token for security
188
-
189
- ## version 1.1.7
190
- #### Added
191
- - twitch info tool
192
- - remove one js module for module to cjs and esm
193
- #### Fixed
194
- - change write token to process.env varaibles own (not avalible values in github and gitlab)
195
- - migrate cjs to esm
196
- - rewrite module
197
- #### Changed
198
- - except some hardware tools and github using models from console-table-printer
199
- - now using esm now about is js file not folder about with index.js
200
- - rewrite all tests functions
201
-
202
- ### version 1.1.6
203
- #### Added
204
- - module stack-analyze mode
205
- #### Fixed
206
- - rewrite code
207
- #### Changed
208
- - menu renove
209
- - renove jsdocs in some function or variables
210
- - remove nonolive recommends soon in versions desktop 7 and pwa 1.5.0
211
-
212
- ### version 1.1.5
213
- #### Added
214
- - add new tool: movie info
215
- - add new test
216
- - renove menu
217
- #### Fixed
218
- - rewrite in some functions and about
219
- - remove some dependencies not using project
220
- #### Changed
221
- - change multibar to 2 single bars
222
- - change switch in all tools for hash functions tables
223
- - renove nonolive recommends
224
-
225
- ### version 1.1.4
226
- #### Added
227
- - add new tool: bitly info
228
- - add new test
229
- #### Fixed
230
- - rewrite some functions
231
- - update npm modules via manual
232
-
233
- ### version 1.1.3
234
- #### Added
235
- - add new module: coingecko-api
236
- - add new tool: crypto market
237
- - add new recomends
238
- - add new test
239
- #### Fixed
240
- - rewrite some functions
241
- - update npm modules via manual
242
- #### Changed
243
- - add new const variables for map array functions
244
-
245
- ### version 1.1.2
246
- #### Added
247
- - add new nonolive streamers Recomend
248
- #### Fixed
249
- - rewrite multiple techstack
250
- - rewrite test files
251
- #### Changed
252
- - changed the for loop to foreach loop
253
-
254
- ### version 1.1.1
255
- #### Added
256
- - using console.table only in objects variables
257
- - using the console-table-printer in arrays in some functions and the about section
258
- - add the new module: console-table-printer
259
- - add the new nonolive streamers and youtube dev recommedation
260
- #### Fixed
261
- - rewrite some funcions
262
- - fragment about section
263
- #### Changed
264
- - using console.table only in objects variables
265
- - using the console-table-printer in arrays in some functions and the about section
266
-
267
- ### version 1.1.0
268
- #### Added
269
- - add the new modules:
270
- - systeminformation the main module
271
- - jsdoc + the template minami the dev modules
272
- - add the hardware information
273
- - add new recomendations for about section
274
- #### Fixed
275
- - rewrite the code the functions singlestack and multiple
276
- - add the name app to question function
277
- #### Changed
278
- - changed the node style color to using colors
147
+ - version 1.1.9
148
+ - Added:
149
+ - new module cheerio
150
+ - new tool webscraping
151
+ - new test
152
+ - Fixed:
153
+ - rewirte axios import
154
+ - Changed:
155
+ - hardware information change from functions to hash table
156
+ - about now is hash table
157
+ - now using the function printTable avoid overwritting.
158
+ - remove jsdocs the modules files
159
+ - remove:
160
+ - remove models console-table-printer
161
+ - remove hash tables
162
+ - version 1.1.8
163
+ - Fixed:
164
+ - restructure all tools as a hash table with promises except the tool hardware information and about section
165
+ - update all modules
166
+ - Changed:
167
+ - remove the module coingecko-api
168
+ - remove process.env variables to writting manual token for security
169
+ - version 1.1.7
170
+ - Added:
171
+ - twitch info tool
172
+ - remove one js module for module to cjs and esm
173
+ - Fixed:
174
+ - change write token to process.env varaibles own (not avalible values in github and gitlab)
175
+ - migrate cjs to esm
176
+ - rewrite module
177
+ - Changed:
178
+ - except some hardware tools and github using models from console-table-printer
179
+ - now using esm now about is js file not folder about with index.js
180
+ - rewrite all tests functions
181
+ - version 1.1.6
182
+ - Added:
183
+ - module stack-analyze mode
184
+ - Fixed:
185
+ - rewrite code
186
+ - Changed:
187
+ - menu renove
188
+ - renove jsdocs in some function or variables
189
+ - remove nonolive recommends soon in versions desktop 7 and pwa 1.5.0
190
+ - version 1.1.5
191
+ - Added:
192
+ - add new tool: movie info
193
+ - add new test
194
+ - renove menu
195
+ - Fixed:
196
+ - rewrite in some functions and about
197
+ - remove some dependencies not using project
198
+ - Changed:
199
+ - change multibar to 2 single bars
200
+ - change switch in all tools for hash functions tables
201
+ - renove nonolive recommends
202
+ - version 1.1.4
203
+ - Added:
204
+ - add new tool: bitly info
205
+ - add new test
206
+ - Fixed:
207
+ - rewrite some functions
208
+ - update npm modules via manual
209
+ - version 1.1.3
210
+ - Added:
211
+ - add new module: coingecko-api
212
+ - add new tool: crypto market
213
+ - add new recomends
214
+ - add new test
215
+ - Fixed:
216
+ - rewrite some functions
217
+ - update npm modules via manual
218
+ - Changed:
219
+ - add new const variables for map array functions
220
+ - version 1.1.2
221
+ - Added:
222
+ - add new nonolive streamers Recomend
223
+ - Fixed:
224
+ - rewrite multiple techstack
225
+ - rewrite test files
226
+ - Changed:
227
+ - changed the for loop to foreach loop
228
+ - version 1.1.1
229
+ - Added:
230
+ - using console.table only in objects variables
231
+ - using the console-table-printer in arrays in some functions and the about section
232
+ - add the new module: console-table-printer
233
+ - add the new nonolive streamers and youtube dev recommedation
234
+ - Fixed:
235
+ - rewrite some funcions
236
+ - fragment about section
237
+ - Changed:
238
+ - using console.table only in objects variables
239
+ - using the console-table-printer in arrays in some functions and the about section
240
+ - version 1.1.0
241
+ - Added:
242
+ - add the new modules:
243
+ - systeminformation the main module
244
+ - jsdoc + the template minami the dev modules
245
+ - add the hardware information
246
+ - add new recomendations for about section
247
+ - Fixed:
248
+ - rewrite the code the functions singlestack and multiple
249
+ - add the name app to question function
250
+ - Changed:
251
+ - changed the node style color to using colors
279
252
 
280
253
  ## generation 1 (ver. 1.0.1 - 1.0.9)
281
254
 
282
- ### version 1.0.9
283
- #### Added
284
- - add the new modules:
285
- - timeago.js for the github user
286
- - add the options github info and anime search the main options
287
- - add new recomendations for the about section
288
- #### Fixed
289
- - return the peformance now for pagespeed
290
- #### Changed
291
- - add new testing
292
-
293
- ### version 1.0.8
294
- #### Added
295
- - add the new modules:
296
- - colors
297
- - cli-progress
298
- #### Fixed
299
- change json print to table print version
300
- #### Changed
301
- - change console.dir about to console.table
302
- - change from text to bar for pagespeed results
303
- - add the badge tech stack project
304
- #### patch version 1.0.85
305
- notes:
306
- - fixed the cli run
307
- - remove performance.now for the defined time in pagespeed
308
- - add recomendations sections
309
-
310
- ### version 1.0.7
311
- #### Added
312
- - add the new modules:
313
- - figlet the main module
314
- - jest dev module and testing functions
315
- - add the options page speed and about the main options
316
- - add return in a option select except about and exit
317
- #### Fixed
318
- - the website in blank or website without http:// or https:// return the main options
319
- - eslint custom rules without style guide
320
- #### Changed
321
- - changed the inquirer list to inquirer rawlist
322
- - rewirte jsdoc in all project except test files
323
- - the tech stack using other console methods console.log only in exit cli
324
-
325
- ## version 1.0.6
326
- #### Added
327
- - add the new options: multiple (analyze many sites) and exit (exit cli).
328
- - the code was testing with eslint to avoid errors to execute
329
- - rewrite the module docs.
330
- #### Changed
331
- - the list options with inquirer
332
- - welcome message modified
333
-
334
- ### version 1.0.5
335
- #### Changed
336
- - modify the code and module structure
337
- #### remove
338
- - remove the commander module
339
-
340
- #### version 1.0.4
341
- - fisrt official version in npm with the modules:
342
- - wappalyzer
343
- - inquirer
344
- - commander
345
-
346
- #### version 1.0.1 to 1.0.3
347
- test version modules without wappalyzer module (only testing)
255
+ - version 1.0.9
256
+ - Added:
257
+ - add the new modules:
258
+ - timeago.js for the github user
259
+ - add the options github info and anime search the main options
260
+ - add new recomendations for the about section
261
+ : Fixed:
262
+ - return the peformance now for pagespeed
263
+ - Changed:
264
+ - add new testing
265
+ - version 1.0.8
266
+ - Added:
267
+ - add the new modules:
268
+ - colors
269
+ - cli-progress
270
+ - Fixed:
271
+ - change json print to table print version
272
+ - Changed:
273
+ - change console.dir about to console.table
274
+ - change from text to bar for pagespeed results
275
+ - add the badge tech stack project
276
+ - patch version 1.0.85:
277
+ - fixed the cli run
278
+ - remove performance.now for the defined time in pagespeed
279
+ - add recomendations sections
280
+ - version 1.0.7
281
+ - Added:
282
+ - add the new modules:
283
+ - figlet the main module
284
+ - jest dev module and testing functions
285
+ - add the options page speed and about the main options
286
+ - add return in a option select except about and exit
287
+ - Fixed:
288
+ - the website in blank or website without http:// or https:// return the main options
289
+ - eslint custom rules without style guide
290
+ - Changed:
291
+ - changed the inquirer list to inquirer rawlist
292
+ - rewirte jsdoc in all project except test files
293
+ - the tech stack using other console methods console.log only in exit cli
294
+ - version 1.0.6
295
+ - Added:
296
+ - add the new options: multiple (analyze many sites) and exit (exit cli).
297
+ - the code was testing with eslint to avoid errors to execute
298
+ - rewrite the module docs.
299
+ - Changed:
300
+ - the list options with inquirer
301
+ - welcome message modified
302
+ - version 1.0.5
303
+ - Changed:
304
+ - modify the code and module structure
305
+ - remove:
306
+ - remove the commander module
307
+ - version 1.0.4
308
+ - fisrt official version in npm with the modules:
309
+ - wappalyzer
310
+ - inquirer
311
+ - commander
312
+ - version 1.0.1 to 1.0.3:
313
+ - test version modules without wappalyzer module (only testing)
package/about.js CHANGED
@@ -22,18 +22,12 @@ const { default: { license, version } } = await import("./package.json", { with:
22
22
  * @property {string} Project.name
23
23
  * @property {string} Project.desc
24
24
  *
25
- * @typedef {({
26
- * [x: string]: (
27
- * refreshCallback: () => Promise<void>,
28
- * ) => void
29
- * })} Select
30
25
  */
31
26
 
32
27
 
33
28
  /** @type {number} */
34
29
  const timeout = 1e3;
35
30
 
36
- /** @type {Select}*/
37
31
  const aboutTool = {
38
32
  mainInfo(refreshCallback) {
39
33
  /** @type {Object<string, string>} */
@@ -79,7 +73,7 @@ const aboutTool = {
79
73
  /** @type {Twitch[]} */
80
74
  const twitchUsers = [
81
75
  {
82
- user: "DannyAgii",
76
+ user: "DannyQuiin",
83
77
  },
84
78
  ];
85
79
 
@@ -0,0 +1,25 @@
1
+ import axios from "axios";
2
+ import { printTable } from "console-table-printer";
3
+ import colors from "colors";
4
+
5
+ /**
6
+ *
7
+ * @param {string} country
8
+ */
9
+ const getStations = async (country) => {
10
+ try {
11
+ const { data } = await axios.get(`https://de1.api.radio-browser.info/json/stations/bycountry/${country}`, {
12
+ params: { limit: 20 }
13
+ });
14
+
15
+ const stations = data.map(({ name, state, codec }) => ({
16
+ name, state: state || "unknown", codec,
17
+ }));
18
+
19
+ stations.length === 0 ? console.warn("no stations".yellow) : printTable(stations);
20
+ } catch (err) {
21
+ console.error(colors.red(err));
22
+ }
23
+ };
24
+
25
+ export default getStations;
@@ -0,0 +1,30 @@
1
+ import axios from "axios";
2
+ import colors from "colors";
3
+ import boxen from "boxen";
4
+
5
+ /**
6
+ * @async
7
+ * @param { 'en' | 'es' } locale
8
+ * @param { string } question
9
+ * @returns {Promise<void>}
10
+ */
11
+ export default async function magicBall(locale, question) {
12
+ const localeKeyword = {
13
+ en: "magic ball say:",
14
+ es: "la bola magic te dice:"
15
+ };
16
+
17
+ try {
18
+ const {data} = await axios.get("https://eightballapi.com/api/biased", {
19
+ params: { question, locale }
20
+ });
21
+
22
+ const anwser = boxen(data.reading, {
23
+ title: localeKeyword[locale],
24
+ });
25
+
26
+ console.info(anwser);
27
+ } catch (err) {
28
+ console.info(colors.red(err.message));
29
+ }
30
+ }
package/hash/infoTools.js CHANGED
@@ -8,6 +8,7 @@ import githubInfo from "../functions/gitUser.js";
8
8
  import bundlephobia from "../functions/bundlephobia.js";
9
9
  import { returnMainOpts, TCGP_EXPANSIONS } from "../utils.js";
10
10
  import getTcgpCard from "../functions/tcgp.js";
11
+ import getStations from "../functions/getStations.js";
11
12
 
12
13
  // bitly regexp
13
14
  const bitlyRegexp = /bit\.ly\//g;
@@ -83,6 +84,16 @@ const infoTools = {
83
84
 
84
85
  getTcgpCard(setName, cardID);
85
86
 
87
+ setTimeout(refreshCallback, 5e3);
88
+ },
89
+ async getStations(refreshCallback) {
90
+ console.warn("some stations not visble only info".yellow);
91
+
92
+ const country = await input({
93
+ message: "enter country"
94
+ });
95
+
96
+ getStations(country);
86
97
  setTimeout(refreshCallback, 5e3);
87
98
  }
88
99
  };
@@ -6,6 +6,8 @@ import { pokerGameOpts, returnMainOpts } from "../utils.js";
6
6
  import genPassword from "../functions/password.js";
7
7
  import hardware from "../functions/hardware.js";
8
8
  import pokerGame from "../functions/poker.js";
9
+ import magicBall from "../functions/magicBall.js";
10
+ import { input } from "@inquirer/prompts";
9
11
 
10
12
  /**
11
13
  * select types
@@ -37,6 +39,20 @@ const utilityTools = {
37
39
 
38
40
  pokerGame(pokeOpt);
39
41
  setTimeout(refreshCallback, 5e3);
42
+ },
43
+ async magic_ball(refreshCallback) {
44
+ const localeOpt = await stackMenu({
45
+ message: "select a magic ball locale:",
46
+ choices: ["en", "es"]
47
+ });
48
+
49
+ const magicBallQuestion = await input({
50
+ message: "enter a question to the selected language:"
51
+ });
52
+
53
+ console.clear();
54
+ magicBall(localeOpt, magicBallQuestion);
55
+ setTimeout(refreshCallback, 5e3);
40
56
  }
41
57
  };
42
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stack-analyze",
3
- "version": "1.3.9",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "description": "cli tech stack analyze and pagespeed with node.js using the wappalyzer module. with google pagespeed api, hardware and crypto market",
6
6
  "main": "cli.js",
@@ -65,4 +65,4 @@
65
65
  "doc": "docs",
66
66
  "test": "test"
67
67
  }
68
- }
68
+ }
package/utils.js CHANGED
@@ -24,22 +24,16 @@ const pokerGameOpts = [
24
24
  ];
25
25
 
26
26
  /**
27
- * @readonly
28
- * @type {Object<string,number>}
27
+ *
28
+ * @constant {Object<string,number>}
29
29
  */
30
30
  const TCGP_EXPANSIONS = {
31
- "p-a": 100,
32
- a1: 286,
33
- a1a: 86,
34
- a2: 207,
35
- a2a: 96,
36
- a2b: 111,
37
- a3: 239,
38
- a3a: 103,
39
- a3b: 107,
40
- a4: 241,
41
- a4a: 105,
42
- b1: 331,
31
+ "p-a": 100, a1: 286, a1a: 86,
32
+ a2: 207, a2a: 96, a2b: 111,
33
+ a3: 239, a3a: 103, a3b: 107,
34
+ a4: 241, a4a: 105,
35
+ b1: 331, b1a: 103,
36
+ b2: 234,
43
37
  };
44
38
 
45
39
  /**