Skip to content

Commit 572672e

Browse files
Add readme
1 parent 97d2fad commit 572672e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/package-lock.json
3+
/yarn.lock

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# TCStringParse
2+
3+
Simple parser for transparency and consent strings compatible with TCF2.0.
4+
5+
## Installation
6+
7+
`npm install tc-string-parse`
8+
9+
## Usage
10+
11+
### NodeJS
12+
13+
```js
14+
const TCStringParse = require('tc-string-parse');
15+
16+
const consentString = ''; // your consent string
17+
TCStringParse(consentString);
18+
```
19+
20+
### Browser
21+
22+
```html
23+
<script src="path/to/tc-string-parse.js"></script>
24+
25+
<script>
26+
const consentString = ''; // your consent string
27+
TCStringParse(consentString);
28+
</script>
29+
```

0 commit comments

Comments
 (0)