https://github.com/dashdashzako/dnt
Browser Do Not Track detection
https://github.com/dashdashzako/dnt
dnt do-not-track privacy
Last synced: about 2 months 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 (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T05:07:46.000Z (over 1 year ago)
- Last Synced: 2025-03-17T22:05:24.514Z (4 months ago)
- Topics: dnt, do-not-track, privacy
- Language: TypeScript
- Homepage:
- Size: 844 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dnt
[](https://codecov.io/gh/dashdashzako/dnt)
[](https://www.npmjs.com/package/@dashdashzako/dnt)
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)