
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
universal-cookie-consent
Advanced tools
A customizable and themeable Angular library and web component (WIP) for getting cookie consent from users.
Universal Cookie Consent for Angular can be installed using npm:
npm install --save universal-cookie-consent
Universal Cookie Consent provides a UniversalCookieConsentModule
that can be easily imported into your project using
the forRoot
method of the module. The default settings can set by passing them as a param to the forRoot
method when
importing the UniversalCookieConsentModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { UniversalCookieConsentModule } from 'universal-cookie-consent';
@NgModule({
imports: [
BrowserModule,
UniversalCookieConsentModule.forRoot({
autoShow: true,
consentTypes: [
{
id: 'base',
title: 'Base Functionality',
description: 'These cookies are required for the functionality of this website and can\'t be disabled.',
mandatory: true
},
{
id: 'analytics',
title: 'Analytics',
description: 'We use these cookies to improve our website.',
color: 'orange'
}
],
disableBodyScroll: true
})
],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Support for Universal Cookie Consent is currently a work in progress and will be available in a future release.
Universal Cookie Consent is sponsored by @Rocketloop.
MIT
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's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
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.