@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 CHANGED
@@ -4,12 +4,12 @@
4
4
 
5
5
  ## Privacy Sandbox Analysis Tool CLI
6
6
 
7
- > The Privacy Sandbox Analysis Tool CLI is designed to help developers audit their websites for the upcoming deprecation of third-party cookies (3PCD) in Chrome as part of the Privacy Sandbox initiative.
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, and generates a report that should help any user draft their future action items to prepare their website for third-party cookie depreciation.
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: psat [options]
35
+ Usage: npm run cli [website-url] -- [options]
36
36
 
37
- CLI to test a URL for third-party cookies
37
+ CLI to test a URL for 3p cookies.
38
38
 
39
39
  Arguments:
40
- url The URL of a website or sitemap you want to analyse.
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 <value> URL of a site
45
- -s, --sitemap-url <value> URL of a sitemap
46
- -c, --csv-path <value> Path to a CSV file with a set of URLs.
47
- -p, --sitemap-path <value> Path to a sitemap saved in the file system
48
- -l, --locale <value> Locale to use for the CLI, supported: en, hi, es, ja, ko, pt-BR
49
- -ul, --url-limit <value> No of URLs to analyze
50
- -nh, --no-headless Flag for running puppeteer in non-headless mode
51
- -np, --no-prompts Flags for skipping all prompts. Default options will be used
52
- -nt, --no-technology Flags for skipping technology analysis.
53
- -d, --out-dir <value> Directory path where the analysis data will be stored
54
- -ab, --accept-banner This will accept the GDPR banner if present.
55
- -h, --help display help for command
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
- Done analyzing technologies.
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": "The Protected Audience API is a Privacy Sandbox technology to serve remarketing and custom audience use cases, designed so third parties cannot track user browsing behavior across sites.",
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
  }