Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dashdashzako/dnt

Browser Do Not Track detection
https://github.com/dashdashzako/dnt

dnt do-not-track privacy

Last synced: 9 days ago
JSON representation

Browser Do Not Track detection

Awesome Lists containing this project

README

        

# dnt

[![codecov](https://codecov.io/gh/dashdashzako/dnt/branch/main/graph/badge.svg)](https://codecov.io/gh/dashdashzako/dnt)
[![npm version](https://img.shields.io/npm/v/@dashdashzako/dnt.svg)](https://www.npmjs.com/package/@dashdashzako/dnt)
![License type](https://img.shields.io/github/license/dashdashzako/dnt.svg)

Browser detection for the "Do Not Track" flag.

```shell
npm i @dashdashzako/dnt
```

## Usage

```ts
import { isDNTEnabled } from 'dnt';

const doNotTrack = isDNTEnabled(window);
```

## License

[MIT](LICENSE)