New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cookie-consent-js

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookie-consent-js - npm Package Compare versions

Comparing version 2.1.8 to 2.1.9

2

package.json
{
"name": "cookie-consent-js",
"version": "2.1.8",
"version": "2.1.9",
"description": "A simple dialog and framework to handle the EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies in a website.",

@@ -5,0 +5,0 @@ "main": "src/cookie-consent.js",

@@ -6,4 +6,2 @@ # cookie-consent-js

## Features
- **Internationalizable**

@@ -16,11 +14,7 @@ with [language files](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content)

## Internationalizable cookie consent banner
## References
There are already language files
for [cz, de, en, es, fr, gr, it, oc and tr](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content).
If you add one, please make a pull request to have it added here as well, thanks.
## See it in action
- [Demo pages with usage examples](https://shaack.com/projekte/cookie-consent-js/index.html)
- [GitHub repository](https://github.com/shaack/cookie-consent-js)
- [npm package](https://www.npmjs.com/package/cookie-consent-js)

@@ -31,7 +25,8 @@ ## Usage

### 1. Install cookie-consent-js in your project with `npm install cookie-consent-js`
### 1. Install
Alternatively you can download the [git repository](https://github.com/shaack/cookie-consent-js).
- Install cookie-consent-js in your project with `npm install cookie-consent-js`
- Alternatively you can download the [git repository](https://github.com/shaack/cookie-consent-js)
### 2. Include `cookie-consent.css`
### 2. Include the CSS

@@ -42,6 +37,6 @@ ```html

This should be done before any bootstrap or other frameworks css. You can overwrite styling in your projects css, take a
This should be done before any bootstrap or other frameworks CSS. You can overwrite styling in your projects CSS, take a
look at [cookie-consent.scss](https://github.com/shaack/cookie-consent-js/blob/master/src/cookie-consent.scss).
### 3. Include `cookie-consent.js`
### 3. Include the js

@@ -52,3 +47,3 @@ ```html

In your websites `<head>` or at the bottom of the `<body>`.
Load the js in your websites `<head>` or at the bottom of the `<body>`.

@@ -74,5 +69,5 @@ ### 4. Initialize the Script

### 6. Enable or disable tracking depending on configuration
### 6. Enable or disable tracking depending on the users configuration
Client side JavaScript: Surround your tracking code with
**Client side JavaScript**: Surround your tracking code with

@@ -85,3 +80,3 @@ ```js

Server side PHP: Surround your tracking code with
**Server side PHP**: Surround your tracking code with

@@ -94,3 +89,3 @@ ```php

All other languages: Just read, if the cookie `cookie-consent-tracking-allowed` is "true"
**All other languages**: Just read, if the cookie `cookie-consent-tracking-allowed` is "true"

@@ -187,2 +182,5 @@ ...that's all! [Contact me](https://shaack.com), if you have questions.

cookie-consent-js is a project of [shaack.com](https://shaack.com).
## More modules
Find more high quality modules
on [my projects page](https://shaack.com/works).
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc