Drupal is a registered trademark of Dries Buytaert

js_cookie

51,454 sites Security covered
View on drupal.org

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)

  1. If using this in a custom module, run composer require drupal/js_cookie from your project root.
  2. If using this in a contributed module, make sure to list js_cookie:js_cookie in your module's .info.yml file dependencies. If your contributed module also has a manual composer.json file, make sure to add a require dependency on "drupal/js_cookie": "^1.0".
  3. Replace any of your .libraries.yml dependencies on core/js-cookie with js_cookie/js-cookie.

Avoid using CDN (Privacy)

To avoid using CDN see README for more information.

Activity

Total releases
4
First release
Nov 2025
Latest release
2 months ago
Release cadence
14 days
Stability
50% stable

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Dec 15, 2025
2.0.1-rc1 Pre-release Dec 3, 2025
2.x-dev Dev Dec 3, 2025
1.0.2 Stable Nov 3, 2025