
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
reactjs-cookie-consent
Advanced tools
A simple responsive cookie consent component for React applications. The component is configurable to support any kind of styling. We also support
We will show some different usages of the component, more examples can be found on Algobook.
import { CookieBanner } from "reactjs-cookie-consent";
<CookieBanner />;
<CookieBanner policyLink="/cookiepolicy" />
<CookieBanner ttlDays={120} cookieName="my_cookie_name" />
<CookieBanner
onAcceptClick={() => console.log("Accepted")}
onDenyClick={() => console.log("Denied")}
/>
<CookieBanner
bannerStyles={{ backgroundColor: "rgb(50 48 48 / 50%)" }}
headlineStyles={{ color: "white" }}
textStyles={{ color: "white" }}
acceptBtnStyles={{ color: "white", backgroundColor: "#19da3b" }}
denyBtnStyles={{ color: "white", backgroundColor: "#9c1717" }}
linkStyles={{ color: "#00437d" }}
/>
import {
cookieBanner,
clearConsentCookie,
getConsentCookie }
from "reactjs-cookie-consent";
clearConsentCookie(name?) // provide name if you are not using our default
getConsentCookie(name?) // provide name if you are not using our default
We will show some images of how it looks, both per default and with some (really nice) custom styling :)
Is something missing? Not working? Or any feature requests? Just email us, we love to improve our software. Email can be found here.
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.