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+; inspect the source before using it on your own files.

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.

Where this check stops

This local walkthrough does not establish the state of a live production system or replace the limits documented in the repository.

Before adapting the command to your own workflow, review the accepted inputs, exit codes and safety boundaries in the README.

Compiled with AI assistance from checked-in public documentation and example scripts. Run the example and review the repository's current documentation before relying on its result.