Socket
Socket
Sign inDemoInstall

bluecookies

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bluecookies

Quick and simple cookie consent dialog for websites.


Version published
Weekly downloads
111
increased by27.59%
Maintainers
1
Install size
106 kB
Created
Weekly downloads
 

Readme

Source

BlueCookies

Quick and simple cookie consent dialog for websites

Preview

Usage

Add to script

Download index.js / index.min.js or use un unpkg.

 <script src="https://unpkg.com/bluecookies/index.js"></script>
<script src="https://unpkg.com/bluecookies/index.min.js"></script>

Init

BlueCookies(mainText, acceptedText, buttonText, customStyle)
  • mainText: Legal text to accept.
  • acceptedText: If user already approved it shows this text 3 seconds.
  • buttonText: Usually "accept".
  • customStyle: Minor style configurations added to the main container, like background and color.

Example

  <script src="https://unpkg.com/bluecookies/index.min.js"></script>
  <script>
    BlueCookies("Do you consent to the use of cookies?", "✔ Cookies", "Accept", "background-color: #8bb8e8; color:#fff;")
  </script>

FAQs

Last updated on 19 Oct 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc