Simple JavaScript parser for transparency and consent strings compatible with TCF 2.0.
Parser is available as NPM package:
npm install tc-string-parse
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>
tc-string-parse <your consent string>