django-cookie-consent
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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

Package Sidebar

Install

npm i django-cookie-consent

Weekly Downloads

744

Version

0.6.0

License

BSD-2-Clause

Unpacked Size

14.5 kB

Total Files

6

Last publish

Collaborators

  • bbt