stack-analyze 1.1.7 → 1.2.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,6 +2,39 @@
2
2
 
3
3
  stack-analyze all version and notable changes, fixed, remove and new additions in code.
4
4
 
5
+ ## version 1.2.0
6
+ ### Added
7
+ - new tool password generator
8
+ ### fixed
9
+ - update anime search tool
10
+ - the files modules now using callbacks and remove no using vars
11
+ ### change
12
+ - the web scraping tool decided to use the question returns to the main menu instead of going to the main menu
13
+
14
+ ## version 1.1.9
15
+ ### Added
16
+ - new module cheerio
17
+ - new tool webscraping
18
+ - new test
19
+ ### fixed
20
+ - rewirte axios import
21
+ ### change
22
+ - hardware information change from functions to hash table
23
+ - about now is hash table
24
+ - now using the function printTable avoid overwritting.
25
+ - remove jsdocs the modules files
26
+ ### remove
27
+ - remove models console-table-printer
28
+ - remove hash tables
29
+
30
+ ## version 1.1.8
31
+ ### fixed
32
+ - restructure all tools as a hash table with promises except the tool hardware information and about section
33
+ - update all modules
34
+ ### change
35
+ - remove the module coingecko-api
36
+ - remove process.env variables to writting manual token for security
37
+
5
38
  ## version 1.1.7
6
39
  ### Added
7
40
  - twitch info tool
@@ -20,7 +53,6 @@ stack-analyze all version and notable changes, fixed, remove and new additions i
20
53
  - module stack-analyze mode
21
54
  ### fixed
22
55
  - rewrite code
23
- - renove nonolive recommends
24
56
  ### changed
25
57
  - menu renove
26
58
  - renove jsdocs in some function or variables
@@ -46,8 +78,6 @@ stack-analyze all version and notable changes, fixed, remove and new additions i
46
78
  ### fixed
47
79
  - rewrite some functions
48
80
  - update npm modules via manual
49
- ### changed
50
- - no changed
51
81
 
52
82
  ## version 1.1.3
53
83
  ### Added
package/about.js CHANGED
@@ -1,58 +1,110 @@
1
+ // print table
2
+ import { printTable } from "console-table-printer";
3
+
4
+ import { listFormat } from "./utils.js";
5
+
1
6
  // package.json
2
7
  import { createRequire } from "module";
3
8
  const require = createRequire(import.meta.url);
4
9
  const { license, version } = require("./package.json");
5
10
 
6
11
  /**
7
- * @type {{ mainDeveloper: string, version: string, license: string }}
12
+ * types for about tools
13
+ *
14
+ * @typedef {Object.<string, function(): void>} aboutTable
15
+ *
16
+ * @typedef {Object} info
17
+ * @property {string} info.mainDeveloper
18
+ * @property {string} info.version
19
+ * @property {string} info.license
20
+ *
21
+ * @typedef {Object} developerList
22
+ * @property {string} developerList.name
23
+ * @property {string} developerList.roles
24
+ *
25
+ * @typedef {Object} youtube
26
+ * @property {string} youtubeChannel
27
+ * @property {string} recomendation
28
+ *
29
+ * @typedef {Object} twitch
30
+ * @property {string} twitch.user
31
+ * @property {string} [twitch.details]
32
+ *
33
+ * @typedef {Object} project
34
+ * @property {string} project.name
35
+ * @property {string} project.desc
8
36
  */
9
- const aboutApp = {
10
- mainDeveloper: "omega5300",
11
- license,
12
- version
13
- };
14
37
 
15
- /**
16
- * @typedef {Object} ideas
17
- * @property {string} ideas.author
18
- * @property {string} ideas.tool
19
- */
38
+ /** @type {aboutTable} */
39
+ const aboutTool = {
40
+ mainInfo() {
41
+ /** @type {info} */
42
+ const aboutApp = {
43
+ mainDeveloper: "omega5300",
44
+ license,
45
+ version
46
+ };
20
47
 
21
- /** @type {ideas[]} */
22
- const ideas = [
23
- { author: "verguiskarime", tool: "bitly info" }
24
- ];
48
+ console.clear();
49
+ console.table(aboutApp);
50
+ },
51
+ lineup() {
52
+ /** @type {developerList[]} */
53
+ const developers = [
54
+ {
55
+ name: "omega5300",
56
+ roles: listFormat.format(["main developer", "lead project", "founder"])
57
+ }
58
+ ];
25
59
 
26
- /** @type { string[] } */
27
- const developers = [ "omega5300" ];
60
+ console.clear();
61
+ printTable(developers);
62
+ },
63
+ youtubeRecomendation() {
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
+ ];
28
73
 
29
- /**
30
- * @typedef {Object} youtubeDev
31
- * @property {string} youtubeDev.youtubeChannel
32
- * @property {string} youtubeDev.recomendation
33
- */
74
+ console.clear();
75
+ printTable(youtubeDev);
76
+ },
77
+ twitchRecomendation() {
78
+ /** @type {twitch[]} */
79
+ const twitchUsers = [
80
+ {
81
+ user: "dannyaegyo",
82
+ },
83
+ {
84
+ user: "Lunanny",
85
+ details: "audiovisual student even though if has ADHD has a great variety regardless of whether or not he has ADHD."
86
+ }
87
+ ];
34
88
 
35
- /** @type {youtubeDev[]} */
36
- const youtubeDev = [
37
- { youtubeChannel: "fazt", recomendation: "recommend" },
38
- { youtubeChannel: "doriandesings", recomendation: "recommend" },
39
- { youtubeChannel: "bluuweb", recomendation: "recommend" },
40
- { youtubeChannel: "leonidas esteban", recomendation: "neutral recommend" },
41
- { youtubeChannel: "fernando herrera", recomendation: "recommend" },
42
- { youtubeChannel: "soy dalto", recomendation: "neutral recommend" },
43
- ];
44
-
45
- /** @type { string[] } */
46
- const twitch = [ "dannyaegyo", "Lunanny" ];
47
-
48
- /** @type { string[] } */
49
- const projects = [ "Doofy's Projects" ];
50
-
51
- export {
52
- aboutApp,
53
- developers,
54
- youtubeDev,
55
- twitch,
56
- projects,
57
- ideas
89
+ console.clear();
90
+ printTable(twitchUsers);
91
+ },
92
+ projectsRecomendation() {
93
+ /** @type {project[]} */
94
+ const projects = [
95
+ {
96
+ name: "Doofy's Projects",
97
+ desc: "tools and systems customs"
98
+ },
99
+ {
100
+ name: "black metal promotion",
101
+ desc: "upload new albums and sometimes tracks from upcoming albums with the permission of bands and/or labels"
102
+ }
103
+ ];
104
+
105
+ console.clear();
106
+ printTable(projects);
107
+ }
58
108
  };
109
+
110
+ export default aboutTool;