
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
django-cookie-consent
Advanced tools
Package containing the JS code for django-cookie-consent.
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/...
npm install django-cookie-consent
You can now import the public API in your own bundle:
import {showCookieBar} from '@jazzband/django-cookie-consent';
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.
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
FAQs
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.