stack-analyze 1.3.5 → 1.3.7

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 (43) hide show
  1. package/CHANGELOG.md +335 -311
  2. package/LICENSE +21 -21
  3. package/about.js +98 -121
  4. package/api/pokerApi.js +5 -5
  5. package/api/wallpapersURL.js +7 -5
  6. package/api/webApis.js +21 -21
  7. package/cli.js +204 -213
  8. package/eslint.config.js +44 -44
  9. package/functions/animeInfo.js +45 -45
  10. package/functions/bitly.js +41 -41
  11. package/functions/bundlephobia.js +36 -36
  12. package/functions/cryptoList.js +48 -48
  13. package/functions/cssValidator.js +25 -25
  14. package/functions/deezer.js +37 -37
  15. package/functions/download.js +25 -24
  16. package/functions/gitUser.js +37 -37
  17. package/functions/hardware.js +109 -109
  18. package/functions/moviesInfo.js +55 -55
  19. package/functions/multipleStack.js +53 -53
  20. package/functions/pageSpeed.js +82 -82
  21. package/functions/password.js +24 -24
  22. package/functions/pokemon.js +106 -106
  23. package/functions/poker.js +40 -42
  24. package/functions/potterSearch.js +32 -32
  25. package/functions/quotes.js +33 -0
  26. package/functions/scraping.js +132 -132
  27. package/functions/singleStack.js +48 -48
  28. package/functions/twitch.js +72 -72
  29. package/hash/infoTools.js +61 -61
  30. package/hash/queryTools.js +113 -116
  31. package/hash/quotesSelect.js +16 -0
  32. package/hash/utilityTools.js +33 -32
  33. package/hash/wallpaperSelect.js +90 -59
  34. package/hash/webTools.js +93 -92
  35. package/logo-module.webp +0 -0
  36. package/menu.js +13 -13
  37. package/package.json +67 -67
  38. package/prompts/webPrompts.js +31 -31
  39. package/readme.md +44 -44
  40. package/types.js +51 -0
  41. package/utils.js +96 -101
  42. package/validations/infoValidations.js +37 -37
  43. package/validations/webValidations.js +33 -33
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 julian david cordoba torres
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 julian david cordoba torres
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/about.js CHANGED
@@ -1,121 +1,98 @@
1
- // print table
2
- import { printTable } from "console-table-printer";
3
-
4
- // package.json
5
- const { default: { license, version}} = await import("./package.json", {with: {type: "json" }});
6
-
7
- const timeout = 1e3;
8
-
9
- /**
10
- * types for about tools
11
- *
12
- * @typedef {Object} Info
13
- * @property {string} Info.mainDeveloper
14
- * @property {string} Info.version
15
- * @property {string} Info.license
16
- *
17
- * @typedef {Object} DeveloperList
18
- * @property {string} DeveloperList.name
19
- * @property {string} DeveloperList.roles
20
- *
21
- * @typedef {Object} Youtube
22
- * @property {string} Youtube.youtubeChannel
23
- * @property {string} Youtube.recomendation
24
- *
25
- * @typedef {Object} Twitch
26
- * @property {string} Twitch.user
27
- * @property {string} [Twitch.details]
28
- *
29
- * @typedef {Object} Project
30
- * @property {string} Project.name
31
- * @property {string} Project.desc
32
- */
33
-
34
- const aboutTool = {
35
- mainInfo(refreshCallback) {
36
- /** @type {Info} */
37
- const aboutApp = {
38
- mainDeveloper: "omega5300",
39
- license,
40
- version
41
- };
42
-
43
- console.clear();
44
- console.table(aboutApp);
45
-
46
- setTimeout(refreshCallback, timeout);
47
- },
48
- async lineup(refreshCallback) {
49
- const { listFormat } = await import("./utils.js");
50
-
51
- /** @type {DeveloperList[]} */
52
- const developers = [
53
- {
54
- name: "omega5300",
55
- roles: listFormat.format(["main developer", "lead project", "founder"])
56
- }
57
- ];
58
-
59
- console.clear();
60
- printTable(developers);
61
- setTimeout(refreshCallback, timeout);
62
- },
63
- youtubeRecomendation(refreshCallback) {
64
- /** @type {Youtube[]} */
65
- const youtubeDev = [
66
- { youtubeChannel: "fazt", recomendation: "recommend" },
67
- { youtubeChannel: "doriandesings", recomendation: "recommend" },
68
- { youtubeChannel: "bluuweb", recomendation: "recommend" },
69
- { youtubeChannel: "leonidas esteban", recomendation: "neutral recommend" },
70
- { youtubeChannel: "fernando herrera", recomendation: "recommend" },
71
- { youtubeChannel: "soy dalto", recomendation: "neutral recommend" },
72
- ];
73
-
74
- console.clear();
75
- printTable(youtubeDev);
76
- setTimeout(refreshCallback, timeout);
77
- },
78
- twitchRecomendation(refreshCallback) {
79
- /** @type {Twitch[]} */
80
- const twitchUsers = [
81
- {
82
- user: "DannyAgii",
83
- },
84
- {
85
- user: "Lunanny",
86
- details: "art director with ADHD."
87
- },
88
- {
89
- user: "Japon_HR",
90
- details: "cosplayer, gamer, dance & halo machinima creator"
91
- }
92
- ];
93
-
94
- console.clear();
95
- printTable(twitchUsers);
96
- setTimeout(refreshCallback, timeout);
97
- },
98
- projectsRecomendation(refreshCallback) {
99
- /** @type {Project[]} */
100
- const projects = [
101
- {
102
- name: "black metal promotion",
103
- desc: "promos albums and community"
104
- },
105
- {
106
- name: "black metal catalog",
107
- desc: "promos albums and community"
108
- },
109
- {
110
- name: "slithering black records",
111
- desc: "record label & community"
112
- }
113
- ];
114
-
115
- console.clear();
116
- printTable(projects);
117
- setTimeout(refreshCallback, timeout);
118
- }
119
- };
120
-
121
- export default aboutTool;
1
+ // print table
2
+ import { printTable } from "console-table-printer";
3
+
4
+ // package.json
5
+ const { default: { license, version}} = await import("./package.json", {with: {type: "json" }});
6
+
7
+ /** @type {number} */
8
+ const timeout = 1e3;
9
+
10
+ /** @type {import("./types.js").Select}*/
11
+ const aboutTool = {
12
+ mainInfo(refreshCallback) {
13
+ /** @type {import("./types.js").Info} */
14
+ const aboutApp = {
15
+ mainDeveloper: "omega5300",
16
+ license,
17
+ version
18
+ };
19
+
20
+ console.clear();
21
+ console.table(aboutApp);
22
+
23
+ setTimeout(refreshCallback, timeout);
24
+ },
25
+ async lineup(refreshCallback) {
26
+ const { listFormat } = await import("./utils.js");
27
+
28
+ /** @type {import("./types.js").DeveloperList[]} */
29
+ const developers = [
30
+ {
31
+ name: "omega5300",
32
+ roles: listFormat.format(["main developer", "lead project", "founder"])
33
+ }
34
+ ];
35
+
36
+ console.clear();
37
+ printTable(developers);
38
+ setTimeout(refreshCallback, timeout);
39
+ },
40
+ youtubeRecomendation(refreshCallback) {
41
+ /** @type {import("./types.js").Youtube[]} */
42
+ const youtubeDev = [
43
+ { youtubeChannel: "fazt", recomendation: "recommend" },
44
+ { youtubeChannel: "doriandesings", recomendation: "recommend" },
45
+ { youtubeChannel: "bluuweb", recomendation: "recommend" },
46
+ { youtubeChannel: "leonidas esteban", recomendation: "neutral recommend" },
47
+ { youtubeChannel: "fernando herrera", recomendation: "recommend" },
48
+ { youtubeChannel: "soy dalto", recomendation: "neutral recommend" },
49
+ ];
50
+
51
+ console.clear();
52
+ printTable(youtubeDev);
53
+ setTimeout(refreshCallback, timeout);
54
+ },
55
+ twitchRecomendation(refreshCallback) {
56
+ /** @type {import("./types.js").Twitch[]} */
57
+ const twitchUsers = [
58
+ {
59
+ user: "DannyAgii",
60
+ },
61
+ {
62
+ user: "Lunanny",
63
+ details: "art director with ADHD."
64
+ },
65
+ {
66
+ user: "Japon_HR",
67
+ details: "cosplayer, gamer, dance & halo machinima creator"
68
+ }
69
+ ];
70
+
71
+ console.clear();
72
+ printTable(twitchUsers);
73
+ setTimeout(refreshCallback, timeout);
74
+ },
75
+ projectsRecomendation(refreshCallback) {
76
+ /** @type {import("./types.js").Project[]} */
77
+ const projects = [
78
+ {
79
+ name: "black metal promotion",
80
+ desc: "promos albums and community"
81
+ },
82
+ {
83
+ name: "black metal catalog",
84
+ desc: "promos albums and community"
85
+ },
86
+ {
87
+ name: "slithering black records",
88
+ desc: "record label & community"
89
+ }
90
+ ];
91
+
92
+ console.clear();
93
+ printTable(projects);
94
+ setTimeout(refreshCallback, timeout);
95
+ }
96
+ };
97
+
98
+ export default aboutTool;
package/api/pokerApi.js CHANGED
@@ -1,5 +1,5 @@
1
- import axios from "axios";
2
-
3
- export const pokerApi = axios.create({
4
- baseURL: "https://bicyclecards.com/how-to-play/",
5
- });
1
+ import axios from "axios";
2
+
3
+ export const pokerApi = axios.create({
4
+ baseURL: "https://bicyclecards.com/how-to-play/",
5
+ });
@@ -1,5 +1,7 @@
1
- import axios from "axios";
2
-
3
- export const wallpapersURL = axios.create({
4
- baseURL: "https://sol-moon-wallpapers.vercel.app/",
5
- });
1
+ import axios from "axios";
2
+
3
+ export const wallpapersURL = axios.create({
4
+ baseURL: "https://sol-moon-wallpapers.vercel.app/",
5
+ responseType: "text",
6
+ responseEncoding: "base64"
7
+ });
package/api/webApis.js CHANGED
@@ -1,21 +1,21 @@
1
- import Wappalyzer from "wapalyzer";
2
- import axios from "axios";
3
-
4
- const wappalyzer = new Wappalyzer();
5
-
6
- /**
7
- * It takes a strategy as a parameter and returns a promise that resolves to the response from the
8
- * Google PageSpeed Insights API
9
- * @typedef {"mobile"|"desktop"} StrategyOpt
10
- * @async
11
- * @param {string} url
12
- * @param {StrategyOpt} strategy
13
- */
14
- const pagespeedApi = async (url, strategy) => await axios.get("https://www.googleapis.com/pagespeedonline/v5/runPagespeed", {
15
- params: { url, strategy }
16
- });
17
-
18
- export {
19
- wappalyzer,
20
- pagespeedApi
21
- };
1
+ import Wappalyzer from "wapalyzer";
2
+ import axios from "axios";
3
+
4
+ const wappalyzer = new Wappalyzer();
5
+
6
+ /**
7
+ * It takes a strategy as a parameter and returns a promise that resolves to the response from the
8
+ * Google PageSpeed Insights API
9
+ * @typedef {"mobile"|"desktop"} StrategyOpt
10
+ * @async
11
+ * @param {string} url
12
+ * @param {StrategyOpt} strategy
13
+ */
14
+ const pagespeedApi = async (url, strategy) => await axios.get("https://www.googleapis.com/pagespeedonline/v5/runPagespeed", {
15
+ params: { url, strategy }
16
+ });
17
+
18
+ export {
19
+ wappalyzer,
20
+ pagespeedApi
21
+ };