stack-analyze 1.2.0 → 1.2.2
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 +18 -0
- package/about.js +19 -11
- package/api/webApis.js +25 -0
- package/cli.js +141 -382
- package/functions/animeInfo.js +13 -14
- package/functions/bitly.js +16 -16
- package/functions/cryptoList.js +9 -15
- package/functions/gitUser.js +18 -18
- package/functions/hardware.js +96 -177
- package/functions/moviesInfo.js +10 -6
- package/functions/multipleStack.js +19 -28
- package/functions/pageSpeed.js +64 -96
- package/functions/password.js +10 -11
- package/functions/scraping.js +123 -143
- package/functions/singleStack.js +10 -9
- package/functions/twitch.js +43 -15
- package/hash/infoTools.js +46 -0
- package/hash/queryTools.js +52 -0
- package/hash/utilityTools.js +21 -0
- package/hash/webTools.js +58 -0
- package/index.cjs +117 -163
- package/index.mjs +120 -168
- package/package.json +9 -9
- package/scraping.json +6 -0
- package/utils.js +78 -4
- package/validations/infoValidations.js +37 -0
- package/validations/webValidations.js +33 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
stack-analyze all version and notable changes, fixed, remove and new additions in code.
|
|
4
4
|
|
|
5
|
+
## version 1.2.2
|
|
6
|
+
### Added
|
|
7
|
+
- add save file function for the tools
|
|
8
|
+
### change
|
|
9
|
+
- change the hash table to unique function in hardware information
|
|
10
|
+
### fixed
|
|
11
|
+
- fixed to unique user to multiple users with split params
|
|
12
|
+
|
|
13
|
+
## version 1.2.1
|
|
14
|
+
### fixed
|
|
15
|
+
- rewrite form arrow functions to named function with export default.
|
|
16
|
+
- rewrite some test functions.
|
|
17
|
+
- add regexp form bitly info tool
|
|
18
|
+
### change
|
|
19
|
+
- renove menu now using categories.
|
|
20
|
+
- add api params.
|
|
21
|
+
- comeback multibar from pagespeed tool
|
|
22
|
+
|
|
5
23
|
## version 1.2.0
|
|
6
24
|
### Added
|
|
7
25
|
- new tool password generator
|
package/about.js
CHANGED
|
@@ -8,11 +8,11 @@ import { createRequire } from "module";
|
|
|
8
8
|
const require = createRequire(import.meta.url);
|
|
9
9
|
const { license, version } = require("./package.json");
|
|
10
10
|
|
|
11
|
+
const timeout = 1e3;
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* types for about tools
|
|
13
15
|
*
|
|
14
|
-
* @typedef {Object.<string, function(): void>} aboutTable
|
|
15
|
-
*
|
|
16
16
|
* @typedef {Object} info
|
|
17
17
|
* @property {string} info.mainDeveloper
|
|
18
18
|
* @property {string} info.version
|
|
@@ -35,9 +35,8 @@ const { license, version } = require("./package.json");
|
|
|
35
35
|
* @property {string} project.desc
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
/** @type {aboutTable} */
|
|
39
38
|
const aboutTool = {
|
|
40
|
-
mainInfo() {
|
|
39
|
+
mainInfo(refreshCallback) {
|
|
41
40
|
/** @type {info} */
|
|
42
41
|
const aboutApp = {
|
|
43
42
|
mainDeveloper: "omega5300",
|
|
@@ -47,8 +46,9 @@ const aboutTool = {
|
|
|
47
46
|
|
|
48
47
|
console.clear();
|
|
49
48
|
console.table(aboutApp);
|
|
49
|
+
setTimeout(refreshCallback, timeout);
|
|
50
50
|
},
|
|
51
|
-
lineup() {
|
|
51
|
+
lineup(refreshCallback) {
|
|
52
52
|
/** @type {developerList[]} */
|
|
53
53
|
const developers = [
|
|
54
54
|
{
|
|
@@ -59,8 +59,9 @@ const aboutTool = {
|
|
|
59
59
|
|
|
60
60
|
console.clear();
|
|
61
61
|
printTable(developers);
|
|
62
|
+
setTimeout(refreshCallback, timeout);
|
|
62
63
|
},
|
|
63
|
-
youtubeRecomendation() {
|
|
64
|
+
youtubeRecomendation(refreshCallback) {
|
|
64
65
|
/** @type {youtube[]} */
|
|
65
66
|
const youtubeDev = [
|
|
66
67
|
{ youtubeChannel: "fazt", recomendation: "recommend" },
|
|
@@ -73,8 +74,9 @@ const aboutTool = {
|
|
|
73
74
|
|
|
74
75
|
console.clear();
|
|
75
76
|
printTable(youtubeDev);
|
|
77
|
+
setTimeout(refreshCallback, timeout);
|
|
76
78
|
},
|
|
77
|
-
twitchRecomendation() {
|
|
79
|
+
twitchRecomendation(refreshCallback) {
|
|
78
80
|
/** @type {twitch[]} */
|
|
79
81
|
const twitchUsers = [
|
|
80
82
|
{
|
|
@@ -82,14 +84,15 @@ const aboutTool = {
|
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
86
|
user: "Lunanny",
|
|
85
|
-
details: "
|
|
87
|
+
details: "art director with ADHD."
|
|
86
88
|
}
|
|
87
89
|
];
|
|
88
90
|
|
|
89
91
|
console.clear();
|
|
90
92
|
printTable(twitchUsers);
|
|
93
|
+
setTimeout(refreshCallback, timeout);
|
|
91
94
|
},
|
|
92
|
-
projectsRecomendation() {
|
|
95
|
+
projectsRecomendation(refreshCallback) {
|
|
93
96
|
/** @type {project[]} */
|
|
94
97
|
const projects = [
|
|
95
98
|
{
|
|
@@ -98,12 +101,17 @@ const aboutTool = {
|
|
|
98
101
|
},
|
|
99
102
|
{
|
|
100
103
|
name: "black metal promotion",
|
|
101
|
-
desc: "
|
|
102
|
-
}
|
|
104
|
+
desc: "promos albums and community"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "black metal catalog",
|
|
108
|
+
desc: "promos albums and community"
|
|
109
|
+
},
|
|
103
110
|
];
|
|
104
111
|
|
|
105
112
|
console.clear();
|
|
106
113
|
printTable(projects);
|
|
114
|
+
setTimeout(refreshCallback, timeout);
|
|
107
115
|
}
|
|
108
116
|
};
|
|
109
117
|
|
package/api/webApis.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Wappalyzer from "wappalyzer";
|
|
2
|
+
import { default as 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: {
|
|
16
|
+
url,
|
|
17
|
+
key: "AIzaSyBEDaW4FxSZ2s1vz5CdD5Ai6PGZGdAzij0",
|
|
18
|
+
strategy
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
wappalyzer,
|
|
24
|
+
pagespeedApi
|
|
25
|
+
};
|