
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.