Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayFrantsev committed Mar 25, 2020
1 parent 97d2fad commit 572672e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules/
/package-lock.json
/yarn.lock
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# TCStringParse

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

## Installation

`npm install tc-string-parse`

## Usage

### NodeJS

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

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

### Browser

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

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

0 comments on commit 572672e

Please sign in to comment.