JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q86700F
  • License Apache-2.0

Simple parser for transparency and consent strings compatible with TCF2.0.

Package Exports

  • tc-string-parse

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tc-string-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TCStringParse

Simple parser for transparency and consent strings compatible with TCF2.0.

Installation

npm install tc-string-parse

Usage

NodeJS

const TCStringParse = require('tc-string-parse');

const consentString = ''; // your consent string
TCStringParse(consentString);

Browser

<script src="path/to/tc-string-parse.js"></script>

<script>
  const consentString = ''; // your consent string
  TCStringParse(consentString);
</script>