@iabtcf/util

Shared Utilties for the iabtcf

Usage no npm install needed!

<script type="module">
  import iabtcfUtil from 'https://cdn.skypack.dev/@iabtcf/util';
</script>

README

InteractiveAdvertisingBureau

@iabtcf

Official JavaScript / TypeScript compliant tool suite for implementing the Transparency and Consent Framework (TCF) v2.0. The essential toolkit for CMPs.

This is a mono repo containing 5 modules:

Core - For encoding/decoding TC strings and tools for handling the Global Vendor List (GVL).

CmpApi - CMP in-page API (__tcfapi()) tool that works with the core library.

cli - Tool to decode a TC string on the command line interface (cli).

Testing - Tools for testing the core library including random TCModel and GVL generators.

Stub - Code for the on-page __tcfapi() CMP stub.