{"id":21627111,"url":"https://github.com/xxczaki/is-dnt","last_synced_at":"2025-04-11T12:46:54.282Z","repository":{"id":57277133,"uuid":"191433276","full_name":"xxczaki/is-dnt","owner":"xxczaki","description":"🕵️ Check whether the Do not track (DNT) policy is enabled in user's browser or not","archived":false,"fork":false,"pushed_at":"2019-08-01T22:29:16.000Z","size":21,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T09:03:53.465Z","etag":null,"topics":["browser","browsers","chrome","detection","dnt","do-not-track","do-not-track-policy","edge","firefox","ie","internet-explorer","internet-explorer-6","is-dnt","js","npm","opera","privacy","respect-privacy","safari","settings"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xxczaki.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"xxczaki","patreon":"akepinski"}},"created_at":"2019-06-11T19:01:25.000Z","updated_at":"2023-04-08T06:56:02.000Z","dependencies_parsed_at":"2022-09-13T05:41:33.511Z","dependency_job_id":null,"html_url":"https://github.com/xxczaki/is-dnt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fis-dnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fis-dnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fis-dnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fis-dnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxczaki","download_url":"https://codeload.github.com/xxczaki/is-dnt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243220,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","browsers","chrome","detection","dnt","do-not-track","do-not-track-policy","edge","firefox","ie","internet-explorer","internet-explorer-6","is-dnt","js","npm","opera","privacy","respect-privacy","safari","settings"],"created_at":"2024-11-25T01:15:35.175Z","updated_at":"2025-04-11T12:46:54.257Z","avatar_url":"https://github.com/xxczaki.png","language":"TypeScript","funding_links":["https://github.com/sponsors/xxczaki","https://patreon.com/akepinski"],"categories":[],"sub_categories":[],"readme":"# is-dnt [![Build Status](https://travis-ci.org/xxczaki/is-dnt.svg?branch=master)](https://travis-ci.org/xxczaki/is-dnt) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\n\u003e Check whether the Do not track (DNT) policy is enabled in user's browser or not\n\n## Highlights\n\n- Supports all major browsers (from Internet Explorer 6)\n- 0 dependencies\n- Written in TypeScript\n\n## Install\n\n```\n$ npm install is-dnt\n```\n\n## Usage\n\n```js\nconst isDnt = require('is-dnt');\n\nisDnt(); //=\u003e true\n```\n\n## API\n\n### isDnt()\n\nReturns a `boolean` of whether the Do not track policy is enabled and `undefined` if the browser does not support DNT.\n\n## Notice\n\nThis package uses the solution described by [Corbin Davenport](https://github.com/corbindavenport) in his [How to correctly check for Do Not Track with JavaScript](https://dev.to/corbindavenport/how-to-correctly-check-for-do-not-track-with-javascript-135d) post.\n\n## License\n\nMIT © [Antoni Kepinski](https://kepinski.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxczaki%2Fis-dnt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxczaki%2Fis-dnt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxczaki%2Fis-dnt/lists"}