Download Latest Version v1.1.1 source code.tar.gz (44.6 kB)
Email in envelope

Get an email when there's a new version of cookie-consent-validator

Home / v1.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-08 783 Bytes
v1.0.0 source code.tar.gz 2026-04-08 38.4 kB
v1.0.0 source code.zip 2026-04-08 45.7 kB
Totals: 3 Items   84.9 kB 0

Initial release — cookie consent validator CLI + library.

Standalone Puppeteer-based tool that clicks "Reject All" on cookie banners and verifies tracking actually stops. Supports 11 CMPs (Cookiebot, OneTrust, Complianz, CookieYes, Iubenda, Didomi, Quantcast, Osano, Borlabs, TrustArc, CookieFirst) plus generic detection in 13 languages.

Install

:::bash
npx @trustyourwebsite/cookie-consent-validator https://example.com

Features

  • CLI with json/text/table output formats and screenshot support
  • Library API via validateConsent() for CI/CD integration
  • 31 known tracking domains (analytics, advertising, social)
  • Cookie classification (tracking vs essential)
  • Exit codes: 0=pass, 1=violations, 2=error

Full compliance scan → https://trustyourwebsite.nl

Source: README.md, updated 2026-04-08