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.
Supporting organizations:
proudly helps maintaining this module for the Drupal community
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Developer tools
51,296 sites report using this module
- Created by dave reid on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



