NAME

iabtcfv2 - Pure-exporter short alias for one-liner and shell use

SYNOPSIS

use iabtcfv2;
my $tc_string = 'CLc...';
my $c = tcf($tc_string);
my $v = validator(vendor_id => 284);

# From the shell:
# perl -Miabtcfv2 -E 'say tcf(shift)->cmp_id' "CLc..."

DESCRIPTION

This module is a thin wrapper around GDPR::IAB::TCFv2::Parser and GDPR::IAB::TCFv2::Validator. It exports two functions by default to reduce boilerplate in one-liners and short scripts.

FUNCTIONS

tcf($tc_string, %opts)

Alias for GDPR::IAB::TCFv2::Parser->Parse. Returns a GDPR::IAB::TCFv2::Parser object.

validator(%opts)

Alias for GDPR::IAB::TCFv2::Validator->new. Returns a GDPR::IAB::TCFv2::Validator object.

SEE ALSO

GDPR::IAB::TCFv2