@f/cookies-enabled

Check whether or not cookies are enabled

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/cookies-enabled
001.1.16 years ago6 years agoMinified + gzip package size for @f/cookies-enabled in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.