stack-analyze 1.3.9 → 1.4.0

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