Socket
Socket
Sign inDemoInstall

django-cookie-consent

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    django-cookie-consent

Frontend code for django-cookie-consent


Version published
Weekly downloads
635
increased by49.06%
Maintainers
1
Install size
14.2 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 10 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc