@google-psat/cli 0.9.0-1

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.
Files changed (55) hide show
  1. package/README.md +96 -0
  2. package/dist/208.js +2 -0
  3. package/dist/442.js +2 -0
  4. package/dist/48.js +2 -0
  5. package/dist/assets/data/PSInfo.json +90 -0
  6. package/dist/assets/data/open-cookie-database.json +24337 -0
  7. package/dist/assets/data/related_website_sets.json +905 -0
  8. package/dist/assets/icons/ad.svg +1 -0
  9. package/dist/assets/icons/anti-covert.svg +1 -0
  10. package/dist/assets/icons/clear-icon.svg +3 -0
  11. package/dist/assets/icons/cross-icon.svg +3 -0
  12. package/dist/assets/icons/done.svg +3 -0
  13. package/dist/assets/icons/filter-icon.svg +3 -0
  14. package/dist/assets/icons/gear.svg +7 -0
  15. package/dist/assets/icons/information-icon.svg +3 -0
  16. package/dist/assets/icons/partition.svg +5 -0
  17. package/dist/assets/icons/right-arrow.svg +2 -0
  18. package/dist/assets/icons/search-icon.svg +2 -0
  19. package/dist/assets/icons/settings-tab-white.svg +9 -0
  20. package/dist/assets/icons/settings-tab.svg +9 -0
  21. package/dist/categories.json +774 -0
  22. package/dist/main.js +8 -0
  23. package/dist/main.js.LICENSE.txt +121 -0
  24. package/dist/main.js.map +1 -0
  25. package/dist/technologies/.gitkeep +0 -0
  26. package/dist/technologies/_.json +207 -0
  27. package/dist/technologies/a.json +5256 -0
  28. package/dist/technologies/b.json +2874 -0
  29. package/dist/technologies/c.json +4574 -0
  30. package/dist/technologies/d.json +2107 -0
  31. package/dist/technologies/e.json +2302 -0
  32. package/dist/technologies/f.json +2418 -0
  33. package/dist/technologies/g.json +2614 -0
  34. package/dist/technologies/h.json +1872 -0
  35. package/dist/technologies/i.json +1681 -0
  36. package/dist/technologies/j.json +1012 -0
  37. package/dist/technologies/k.json +1299 -0
  38. package/dist/technologies/l.json +2059 -0
  39. package/dist/technologies/m.json +3412 -0
  40. package/dist/technologies/n.json +1241 -0
  41. package/dist/technologies/o.json +1999 -0
  42. package/dist/technologies/p.json +3903 -0
  43. package/dist/technologies/q.json +446 -0
  44. package/dist/technologies/r.json +2536 -0
  45. package/dist/technologies/s.json +7419 -0
  46. package/dist/technologies/t.json +3625 -0
  47. package/dist/technologies/u.json +1036 -0
  48. package/dist/technologies/v.json +1407 -0
  49. package/dist/technologies/w.json +2457 -0
  50. package/dist/technologies/x.json +323 -0
  51. package/dist/technologies/y.json +745 -0
  52. package/dist/technologies/z.json +731 -0
  53. package/dist/vendors-analysis-utils_node_modules_cross-fetch_dist_node-ponyfill_js.js +4035 -0
  54. package/dist/vendors-analysis-utils_node_modules_cross-fetch_dist_node-ponyfill_js.js.map +1 -0
  55. package/package.json +64 -0
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/GoogleChromeLabs/ps-analysis-tool/main/packages/extension/icons/icon.svg" height="100" width="100">
3
+ </p>
4
+
5
+ ## Privacy Sandbox Analysis Tool CLI
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.
8
+
9
+
10
+ ## Using the CLI
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.
13
+
14
+ > Required Node Version: 18 or later
15
+
16
+
17
+ ### Installation
18
+
19
+ ```
20
+ npm i -g @google-psat/cli
21
+ ```
22
+
23
+ ### Usage
24
+
25
+ ```
26
+ psat https://example.com
27
+ ```
28
+
29
+
30
+ By default, PSAT generates the report as an HTML file. You can open it in a web browser of your choice and use it to filter the output.
31
+
32
+ ### CLI option
33
+
34
+ ```
35
+ Usage: psat [options]
36
+
37
+ CLI to test a URL for third-party cookies
38
+
39
+ Arguments:
40
+ url The URL of a website or sitemap you want to analyse.
41
+
42
+ Options:
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
+
57
+ ```
58
+
59
+ ### Output
60
+ After running the analysis, it will create a report in `/out/` directory
61
+ ```bash
62
+ psat -u https://www.google.co.in
63
+ ✓ Done analyzing cookies.
64
+ ✓ Done analyzing technologies.
65
+ Report created successfully: /Users/username/projects/psat-cli-tool/out/www-google-co-in/index.html
66
+ ```
67
+
68
+ Open the generated HTML file in the browser.
69
+
70
+ ![PSAT CLI Output](https://s3.amazonaws.com/i.snag.gy/Dyzq6N.jpg)
71
+
72
+ ## Docs
73
+
74
+ - Learn more about the [Privacy Sandbox](https://privacysandbox.com/) initiative.
75
+ - Visit our [wiki](https://github.com/GoogleChromeLabs/ps-analysis-tool/wiki/) for more information about PSAT.
76
+ - Please refer to the [CLI output](https://github.com/GoogleChromeLabs/ps-analysis-tool/wiki/PSAT-Command-Line-Interface#cli-output) section on our wiki for a better understanding of the reports.
77
+ - To learn about cookie filters, check the [Cookie table](https://github.com/GoogleChromeLabs/ps-analysis-tool/wiki/Cookies-Table) section on the wiki.
78
+
79
+
80
+ ## Contributing
81
+ We welcome your patches and contributions to this project. Whether you're a frequent contributor or addressing a specific issue that matters to you, we appreciate your input.
82
+
83
+ To develop and contribute, please refer to our [contribution guide](https://github.com/GoogleChromeLabs/ps-analysis-tool/blob/main/docs/CONTRIBUTING.md) for detailed information.
84
+
85
+
86
+ ## Using PSAT in Chrome extension
87
+
88
+ PSAT is available as a Chrome extension that allows you to do an analysis while interacting with websites.
89
+
90
+ ### Installation:
91
+
92
+ You can install the PSAT extension from the [Chrome web store](https://chromewebstore.google.com/detail/privacy-sandbox-analysis/ehbnpceebmgpanbbfckhoefhdibijkef)
93
+
94
+ To run it: Visit the website you want to analyze, open Chrome DevTools, and select the Privacy Sandbox panel.
95
+
96
+ ![PSAT Chrome Extension](https://s3.amazonaws.com/i.snag.gy/OcCl5i.jpg)