@iabtcf/cli

Decode a iab TCF (Transparency and Consent Framework) TC String via the command line

Usage no npm install needed!

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

README

NPM version npm module downloads per month InteractiveAdvertisingBureau

@iabtcf/cli

command line decoding of iab TC String

Installation

npm

npm install -g @iabtcf/cli

yarn

yarn add -g @iabtcf/cli

Using

! tcstring COrVd1pOrVd1pACABCENAHCAAAAAAAAAAAiQAAAAAAAA
encoded: "COrVd1pOrVd1pACABCENAHCAAAAAAAAAAAiQAAAAAAAA"
version: 2
cmpId: 2
cmpVersion: 1
consentScreen: 2
consentLanguage: "EN"
created: Mon Dec 09 2019 00:00:00 GMT
lastUpdated: Mon Dec 09 2019 00:00:00 GMT
policyVersion: 2
isServiceSpecific: false
useNonStandardStacks: false
purposeOneTreatment: false
publisherCountryCode: "ES"
supportOOB: false
vendorListVersion: 7
purposeConsents
purposeLegitimateInterest
specialFeatureOptIns
publisherCustomConsents
publisherLegitimateInterest
publisherCustomConsents
publisherCustomLegitimateInterest
vendorConsents
vendorLegitimateInterest
vendorsDisclosed
vendorsAllowed