🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@mozmeao/dnt-helper

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mozmeao/dnt-helper

A helper that returns true or false based on whether doNotTrack is enabled on the browser.

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
311
-13.85%
Maintainers
5
Weekly downloads
 
Created
Source

Mozilla Do Not Track (DNT) Helper

What does it do?

A helper that returns true or false based on whether doNotTrack is enabled on the browser. For more general information on DNT, visit MDN.

How to install and use

Install via npm: npm install @mozmeao/dnt-helper

Import the library at your applications entrypoint via require, import, or by using a global variable in your script tag:

  • import dntHelper from '@mozmeao/dnt-helper';
  • const dntHelper = require('@mozmeao/dnt-helper')
  • const dntHelper = window.dntHelper

View demo

  • Clone this repository: git clone https://github.com/mozmeao/dnt-helper.git
  • cd into dnt-helper
  • Install npm dependencies: npm install
  • cd into demo
  • Install demo dependencies: npm install
  • Start the server with npm start
  • Visit http://localhost:8080/ to view the server

The purpose of the demo is just to show if your browser has DNT enabled or disabled.

Further Documentation

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.

Keywords

mozilla

FAQs

Package last updated on 08 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts