0.6.0 • Published 16 days ago

django-cookie-consent v0.6.0

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
16 days ago

django-cookie-consent

Package containing the JS code for django-cookie-consent.

Jazzband

The cookiebar module is shipped in the Python package itself and available through django's staticfiles mechanism. This package is aimed at users wishing to include the assets in their own Javascript bundle through webpack/vite/...

Installation

npm install django-cookie-consent

You can now import the public API in your own bundle:

import {showCookieBar} from '@jazzband/django-cookie-consent';

TypeScript and ESM

The source code is written in TypeScript. The type declarations are shipped in the published package.

We only publish ES modules and do not offer CommonJS.

Building

Use nvm or your tool of choice to select the right NodeJS version:

nvm use

Building the NPM package:

npm run build

Lastly, the frontend toolchain also builds the cookiebar module bundle that's included in the Python package:

npm run build:django-static
0.6.0

16 days ago

0.6.0-beta0

17 days ago