stack-analyze 1.2.8 → 1.2.9
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 +7 -1
- package/api/webApis.js +1 -1
- package/functions/cssValidator.js +25 -0
- package/hash/webTools.js +10 -0
- package/package.json +9 -8
- package/utils.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
stack-analyze all version and notable changes, fixed, remove and new additions in code.
|
|
4
4
|
|
|
5
|
-
## generation 3 (ver. 1.2.0 -)
|
|
5
|
+
## generation 3 (ver. 1.2.0 - 1.2.9)
|
|
6
|
+
|
|
7
|
+
### version 1.2.9
|
|
8
|
+
#### Added
|
|
9
|
+
- css validate
|
|
10
|
+
#### changed
|
|
11
|
+
- changed wappalyzer module
|
|
6
12
|
|
|
7
13
|
### version 1.2.8
|
|
8
14
|
#### Added
|
package/api/webApis.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// modules
|
|
2
|
+
import colors from "colors";
|
|
3
|
+
import cssValidator from "w3c-css-validator";
|
|
4
|
+
import { stackSave } from "../utils.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @description css validator tool from w3c service
|
|
8
|
+
* @param {string} url - url analyze all stylesheets
|
|
9
|
+
* @async
|
|
10
|
+
* @returns {Promise<void>}
|
|
11
|
+
*/
|
|
12
|
+
export default async function cssValidate(url) {
|
|
13
|
+
try {
|
|
14
|
+
const cssResults = await cssValidator.validateURL(url, {
|
|
15
|
+
warningLevel: 1
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
stackSave("cssErrors.json", JSON.stringify(cssResults.errors, null, 2));
|
|
19
|
+
stackSave("cssWarnings.json", JSON.stringify(cssResults.warnings, null, 2));
|
|
20
|
+
|
|
21
|
+
console.info("finish css results printers".green);
|
|
22
|
+
} catch(err) {
|
|
23
|
+
console.error(colors.red(err.message));
|
|
24
|
+
}
|
|
25
|
+
}
|
package/hash/webTools.js
CHANGED
|
@@ -9,6 +9,7 @@ import singleStack from "../functions/singleStack.js";
|
|
|
9
9
|
import multipleStack from "../functions/multipleStack.js";
|
|
10
10
|
import pageSpeed from "../functions/pageSpeed.js";
|
|
11
11
|
import scrape from "../functions/scraping.js";
|
|
12
|
+
import cssValidate from "../functions/cssValidator.js";
|
|
12
13
|
|
|
13
14
|
// validations
|
|
14
15
|
import {
|
|
@@ -52,6 +53,15 @@ const webTools = {
|
|
|
52
53
|
scrape(url, option);
|
|
53
54
|
setTimeout(refreshCallback, 3000);
|
|
54
55
|
});
|
|
56
|
+
},
|
|
57
|
+
css_validate(refreshCallback) {
|
|
58
|
+
console.clear();
|
|
59
|
+
inquirer.prompt([singleWebQuery])
|
|
60
|
+
.then(({ url }) => {
|
|
61
|
+
cssValidate(url);
|
|
62
|
+
const timeEnd = performance.now();
|
|
63
|
+
setTimeout(refreshCallback, timeEnd);
|
|
64
|
+
});
|
|
55
65
|
}
|
|
56
66
|
};
|
|
57
67
|
|
package/package.json
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stack-analyze",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
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
|
-
"main": "
|
|
6
|
+
"main": "cli.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"stack-analyze": "cli.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"axios": "^1.6.
|
|
11
|
+
"axios": "^1.6.7",
|
|
12
12
|
"boxen": "^7.1.1",
|
|
13
13
|
"cheerio": "^1.0.0-rc.12",
|
|
14
14
|
"cli-progress": "^3.12.0",
|
|
15
15
|
"colors": "^1.4.0",
|
|
16
|
-
"console-table-printer": "^2.
|
|
16
|
+
"console-table-printer": "^2.12.0",
|
|
17
17
|
"figlet": "^1.7.0",
|
|
18
18
|
"gauge": "^5.0.1",
|
|
19
|
-
"inquirer": "^9.2.
|
|
20
|
-
"systeminformation": "^5.
|
|
19
|
+
"inquirer": "^9.2.15",
|
|
20
|
+
"systeminformation": "^5.22.0",
|
|
21
21
|
"timeago.js": "^4.0.2",
|
|
22
|
-
"
|
|
22
|
+
"w3c-css-validator": "^1.3.2",
|
|
23
|
+
"wapalyzer": "^6.10.65"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"eslint": "^8.
|
|
26
|
+
"eslint": "^8.57.0",
|
|
26
27
|
"jsdoc": "^4.0.2"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
package/utils.js
CHANGED