JS Cookie
62,074 sites
Security covered
Drupal 11
· not 10
This module provides the js-cookie JavaScript library for use in Drupal projects, particularly for versions where it's no longer included by default. It allows developers to easily integrate and manage cookies using JavaScript in their Drupal sites.
Provides a Drupal library definition for the JavaScript Cookie library (js-cookie) after it was deprecated in Drupal 10 and removed from Drupal 11.
Instructions
Installing this module and the library dependency
Follow the README.md instructions
Using this module as dependency for the js-cookie library (as developer)
- If using this in a custom module, run
composer require drupal/js_cookiefrom your project root. - If using this in a contributed module, make sure to list
js_cookie:js_cookiein your module's.info.ymlfile dependencies. If your contributed module also has a manualcomposer.jsonfile, make sure to add arequiredependency on"drupal/js_cookie": "^1.0". - Replace any of your
.libraries.ymldependencies oncore/js-cookiewithjs_cookie/js-cookie.
Avoid using CDN (Privacy)
To avoid using CDN see README for more information.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
17 tracked projects depend on this one
- Fast Permissions Administration 11,468 sites
- Siteimprove.ai 7,707 sites
- Collapsiblock 5,455 sites
- Popup message 4,556 sites
- The CodeMirror Editor 4,041 sites
- Modal 2,833 sites
- Bootstrap Site Alert 1,596 sites
- SimpleAds 1,177 sites
- Simplifying 563 sites
- Cookie Content Blocker 500 sites
- Google Tag Manager: Events 283 sites
- Like! 138 sites
- Recombee 52 sites
- Prehome 34 sites
- Personified 12 sites
- Smart Content CDN 7 sites
- CookieCuttr 7 sites