Socket
Socket
Sign inDemoInstall

cookieyesno

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

compile.py

8

package.json
{
"name": "cookieyesno",
"version": "1.0.1",
"version": "1.0.2",
"main": "src/cookieyesno.js",
"scripts": {
"build": "python3 compile.py"
},
"repository": {

@@ -9,3 +12,4 @@ "type": "git",

},
"license": "BSD 3-Clause"
"license": "BSD 3-Clause",
"keywords": ["cookie", "cookies", "browser", "banner", "privacy", "policy", "consent", "legal"]
}
# cookieyesno
Easy to use GDPR-complient cookie-banner
Take a look at it in action on a real site: https://watchaccuracy.com/
## Usage
```js
// using packages
import CookieYesNo from 'cookieyesno';
// or simply include the dist/cookieyesno.min.js file in the html
const cyn = new CookieYesNo({

@@ -43,1 +49,10 @@ text: 'This website uses cookies. You can select below which cookies will be stored on your device.',

```
## Modify the banner
It's pretty simple: just use CSS-rules.
The following classes are available:
* `.cyn-banner`: main banner element
* `.cyn-categories`: table containing the different cookie categories
* `.cyn-btn-save`: save settings button
* `.cyn-btn-accept-all`: accept all button
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