Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

JS Cookie

62,074 sites Security covered Drupal 11 · not 10
View on drupal.org

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)

  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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

17 tracked projects depend on this one

Activity

Tracked releases
4
Tracked since
Nov 2025
Latest release
8 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

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