Open source · Web & UX

Cookie Consent Config Checker

Validate consent categories, defaults and script loading boundaries.

v1.0.0 · Node.js 22+ · MIT

Browse the public repository · View releases

TOOLID=cookie-consent-config-checker. Zero-dependency Node 22+ reporter for a declared consent policy and one complete, pre-captured fixture export. It reads local JSON only; it never drives a browser, loads a page, fetches a script, or changes consent settings. It checks technical configuration and the exported event order, not legal compliance or the truth of a capture. Consult qualified counsel for jurisdiction-specific obligations.

This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.

Run the checked-in example

node bin/cookie-consent-config-checker.mjs --root examples/pass --policy policy.json --capture capture.json
node bin/cookie-consent-config-checker.mjs --root examples/fail --policy policy.json --capture capture.json
npm run check

Read the result

The examples exit 0 and 1. --help prints usage; --human adds a fixed stderr summary. The library exports TOOLID, LIMITS, RULESEVERITY, and evaluateConsent(policy,capture,{now}) for an injected monotonic clock.