Socket
Book a DemoInstallSign in
Socket

accept-cookie-popup

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accept-cookie-popup

Cookie consent notification plugin

1.2.1
latest
Source
npmnpm
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

AcceptCookiePopup

Cookie consent notification plugin

Getting Started

Download the plugin and add it to your website. Alternatively, install via NPM:

npm i accept-cookie-popup

Below, initialize an instance of AcceptCookiePopup:

new AcceptCookiePopup();

Configuration

The plugin comes with default settings, but it can also accept a configuration object for customization. Below is a table of available configuration keys:

Key                   | Description (Type, Default Value)
----------------------|--------------------------------------
siteName              | Website name (string, ~Hostname~)
linkCookiePage        | URL of the cookie policy page (string, '/cookie-policy/')
showDelay             | Delay before showing the popup in milliseconds (number, 2000)
showAnimationDuration | Popup show animation duration in milliseconds (number, 800)
hideMonthCount        | Number of months until the popup reappears (number, 2)
cookieName            | Cookie name (string, 'cookiePopup')
cookieValue           | Cookie value (string, 'alreadyShowed')
popupName             | BEM class name for the popup (string, 'cookie-accept-popup')
customCSS             | Enable custom CSS rules (boolean, false)
btnText               | Accept button text (string, 'Хорошо')
closeTitle            | Close button (крестик) (string, 'Закрыть')
messageText           | Custom message text. Default method returns string. (function)

Keywords

cookie-popup

FAQs

Package last updated on 14 May 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.