NAME
iabtcf-dump - Parses TC strings and outputs them as JSON
SYNOPSIS
iabtcf-dump [options] [tc_strings...]
OPTIONS
- --pretty
-
Output human-readable, indented JSON.
- --json-array, --bulk
-
Output a single JSON array containing all parsed objects.
- --ignore-errors, -i
-
Do not output any JSON error object for failed strings.
- --fail-fast, -f
-
Stop processing and exit the program immediately upon the first parse error.
- --errors-to-stderr, -e
-
Output JSON error objects to STDERR instead of STDOUT.
- --quiet, -q
-
Suppress human-readable warning messages on STDERR.
- --help, -h
-
Print a brief help message and exits.
- --man
-
Prints the manual page and exits.
DESCRIPTION
iabtcf-dump is a command-line utility for the GDPR::IAB::TCFv2 library. It allows you to parse IAB Transparency and Consent (TC) strings and convert them into JSON format for easy inspection or further processing with tools like jq.
EXAMPLES
# Dump a string to JSON line
iabtcf-dump CPi...AAA
# Dump multiple strings to a pretty-printed JSON array
iabtcf-dump --pretty --json-array CPi...AAA CPj...BBB
# Read from STDIN
cat strings.txt | iabtcf-dump --json-array