Skip to main content

@hmcts/cookie-manager

Introduction

@hmcts/cookie-manager is a JavaScript library for dealing with cookie compliance.

It provides a streamline way to define essential and non-essential cookies on a service, which then acts as a basis for user’s to provide consent for each different category of cookie. @hmcts/cookie-manager can be configured to remove all unknown cookies, to accept or deny cookies defined within the config by default, or hide/display a Cookie Banner element based on the current preference status.

This library is intended to be used with the GOV.UK Design System ‘Cookie Banner’ component, though through configuration, it can be used with most simple one/two stage cookie banners.

This project is developed under the MIT license.

Contributors