1.3.0 • Published 4 years ago

tc-string-parse v1.3.0

Weekly downloads
308
License
Apache-2.0
Repository
github
Last release
4 years ago

TCStringParse

Simple JavaScript parser for transparency and consent strings compatible with TCF 2.0.

Installation

Parser is available as NPM package:

npm install tc-string-parse

Usage

NodeJS (>=5.10.0)

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

const consentString = ''; // your consent string
const consentModel = tcStringParse(consentString);

Browser (IE 9+ with atob polyfill)

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

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

Command line

tc-string-parse <your consent string>
1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago