third-party-cookie-check

2.0.0 • Public • Published

third-party-cookie-check

A simple way to check for third party cookie support.

Warning

This module can be imported on the server and in a browser without issue, but it will likely throw an error if you call the function on the server.

You know your environment better than I do, so I leave it to you to ensure your code is running in a browser before calling this module.

Installation

npm install third-party-cookie-check

Usage

import cookieCheck from 'third-party-cookie-check';

// If the check takes > 1 second, supported will be false and timedOut will be true
const { supported, timedOut } = await cookieCheck();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i third-party-cookie-check

      Weekly Downloads

      107

      Version

      2.0.0

      License

      ISC

      Unpacked Size

      6.72 kB

      Total Files

      4

      Last publish

      Collaborators

      • boblauer