@f/cookies-enabled

1.1.1 • Public • Published

cookies-enabled

Build status Git tag NPM version Code style

Check whether or not cookies are enabled

Installation

$ npm install @f/cookies-enabled

Usage

var cookiesEnabled = require('@f/cookies-enabled')

if (!cookiesEnabled()) {
  alert('Please enable cookies before using this website!')
}

API

cookiesEnabled()

Returns: Boolean indicating whether or not cookies are currently enabled in the user's browser.

License

MIT

/@f/cookies-enabled/

    Package Sidebar

    Install

    npm i @f/cookies-enabled

    Weekly Downloads

    84

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • f