Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dashdashzako/dnt
- Owner: dashdashzako
- License: mit
- Created: 2019-03-18T15:29:41.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T05:07:46.000Z (11 months ago)
- Last Synced: 2024-12-06T16:48:22.462Z (27 days ago)
- Topics: dnt, do-not-track, privacy
- Language: TypeScript
- Homepage:
- Size: 844 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)