@google-psat/cli 0.9.0-2 → 0.10.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/README.md +23 -20
- package/dist/assets/data/PSInfo.json +9 -2
- package/dist/assets/data/open-cookie-database.json +16545 -12646
- package/dist/assets/data/related_website_sets.json +66 -0
- package/dist/assets/icons/private-aggregation.svg +1 -0
- package/dist/assets/readme.md +3 -0
- package/dist/main.js +3 -3
- package/dist/main.js.LICENSE.txt +10 -0
- package/package.json +11 -4
- package/dist/208.js +0 -2
- package/dist/442.js +0 -2
- package/dist/main.js.map +0 -1
- package/dist/vendors-analysis-utils_node_modules_cross-fetch_dist_node-ponyfill_js.js +0 -4035
- package/dist/vendors-analysis-utils_node_modules_cross-fetch_dist_node-ponyfill_js.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## Privacy Sandbox Analysis Tool CLI
|
|
6
6
|
|
|
7
|
-
>
|
|
7
|
+
>The Privacy Sandbox Analysis Tool CLI is designed to help developers audit and analyze their websites in Chrome environments where the unrestricted use of 3P cookies has been blocked.
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
## Using the CLI
|
|
11
11
|
|
|
12
|
-
PSAT CLI allows you to audit a single website or multiple websites using a sitemap or a CSV file
|
|
12
|
+
PSAT CLI allows you to audit a single website or multiple websites using a sitemap or a CSV file. It generates a report to help users draft future action items to prepare their websites for environments where the unrestricted use of 3P cookies has been blocked.
|
|
13
13
|
|
|
14
14
|
> Required Node Version: 18 or later
|
|
15
15
|
|
|
@@ -32,28 +32,32 @@ By default, PSAT generates the report as an HTML file. You can open it in a web
|
|
|
32
32
|
### CLI option
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
Usage:
|
|
35
|
+
Usage: npm run cli [website-url] -- [options]
|
|
36
36
|
|
|
37
|
-
CLI to test a URL for
|
|
37
|
+
CLI to test a URL for 3p cookies.
|
|
38
38
|
|
|
39
39
|
Arguments:
|
|
40
|
-
url
|
|
40
|
+
website-url The URL of a single site to analyze
|
|
41
41
|
|
|
42
42
|
Options:
|
|
43
43
|
-V, --version output the version number
|
|
44
|
-
-u, --url <
|
|
45
|
-
-s, --
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
|
|
44
|
+
-u, --url <url> The URL of a single site to analyze
|
|
45
|
+
-s, --source-url <url> The URL of a sitemap or CSV to analyze
|
|
46
|
+
-f, --file <path> The path to a local file (CSV or XML sitemap) to analyze
|
|
47
|
+
-n, --number-of-urls <num> Limit the number of URLs to analyze (from sitemap or CSV)
|
|
48
|
+
-d, --display Flag for running CLI in non-headless mode (default: false)
|
|
49
|
+
-v, --verbose Enables verbose logging (default: false)
|
|
50
|
+
-t, --tech Enables technology analysis (default: false)
|
|
51
|
+
-o, --out-dir <path> Directory to store analysis data (JSON, CSV, HTML) without launching the dashboard
|
|
52
|
+
-i, --ignore-gdpr Ignore automatically accepting the GDPR banner if present (default: false)
|
|
53
|
+
-q, --quiet Skips all prompts; uses default options (default: false)
|
|
54
|
+
-c, --concurrency <num> Number of tabs to open in parallel during sitemap or CSV analysis (default: 3)
|
|
55
|
+
-w, --wait <num> Number of milliseconds to wait after the page is loaded before generating the report (default:
|
|
56
|
+
20000)
|
|
57
|
+
-l, --locale <language> Locale to use for the CLI, supported: en, hi, es, ja, ko, pt-BR (default: "en")
|
|
58
|
+
-h, --help Display help for command
|
|
59
|
+
|
|
60
|
+
To learn more, visit our wiki: https://github.com/GoogleChromeLabs/ps-analysis-tool/wiki.
|
|
57
61
|
```
|
|
58
62
|
|
|
59
63
|
### Output
|
|
@@ -61,8 +65,7 @@ After running the analysis, it will create a report in `/out/` directory
|
|
|
61
65
|
```bash
|
|
62
66
|
psat -u https://www.google.co.in
|
|
63
67
|
✓ Done analyzing cookies.
|
|
64
|
-
|
|
65
|
-
Report created successfully: /Users/username/projects/psat-cli-tool/out/www-google-co-in/index.html
|
|
68
|
+
Report created successfully: /Users/username/projects/psat-cli-tool/out/www-google-co-in/report_2024-07-31_14-41-27.html
|
|
66
69
|
```
|
|
67
70
|
|
|
68
71
|
Open the generated HTML file in the browser.
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"protected-audience": {
|
|
19
19
|
"name": "Protected Audience",
|
|
20
|
-
"description": "
|
|
21
|
-
"useI18n": false,
|
|
20
|
+
"description": "PSProtectedAudience",
|
|
22
21
|
"proposal": "https://github.com/WICG/turtledove",
|
|
23
22
|
"publicDiscussion": "https://github.com/WICG/turtledove/issues",
|
|
24
23
|
"publicExplainer": "https://github.com/WICG/turtledove/blob/main/FLEDGE.md",
|
|
@@ -86,5 +85,13 @@
|
|
|
86
85
|
"publicDiscussion": "https://github.com/miketaylr/user-agent-reduction/issues",
|
|
87
86
|
"videoOverview": "",
|
|
88
87
|
"devDocumentation": "https://developers.google.com/privacy-sandbox/protections/user-agent"
|
|
88
|
+
},
|
|
89
|
+
"private-aggregation": {
|
|
90
|
+
"name": "Private Aggregation",
|
|
91
|
+
"description": "privateAggregationDescription",
|
|
92
|
+
"proposal": "https://github.com/patcg-individual-drafts/private-aggregation-api",
|
|
93
|
+
"publicDiscussion": "https://github.com/patcg-individual-drafts/private-aggregation-api/issues",
|
|
94
|
+
"publicExplainer": "https://github.com/patcg-individual-drafts/private-aggregation-api/blob/main/report_verification.md",
|
|
95
|
+
"devDocumentation": "https://developers.google.com/privacy-sandbox/relevance/private-aggregation/fundamentals"
|
|
89
96
|
}
|
|
90
97
|
}
|