Giter Site home page Giter Site logo

xxczaki / is-dnt Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 21 KB

🕵️ Check whether the Do not track (DNT) policy is enabled in user's browser or not

License: MIT License

TypeScript 100.00%
do-not-track dnt do-not-track-policy browser browsers chrome firefox ie internet-explorer internet-explorer-6

is-dnt's Introduction

is-dnt Build Status XO code style

Check whether the Do not track (DNT) policy is enabled in user's browser or not

Highlights

  • Supports all major browsers (from Internet Explorer 6)
  • 0 dependencies
  • Written in TypeScript

Install

$ npm install is-dnt

Usage

const isDnt = require('is-dnt');

isDnt(); //=> true

API

isDnt()

Returns a boolean of whether the Do not track policy is enabled and undefined if the browser does not support DNT.

Notice

This package uses the solution described by Corbin Davenport in his How to correctly check for Do Not Track with JavaScript post.

License

MIT © Antoni Kepinski

is-dnt's People

Contributors

vladimyr avatar xxczaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.