Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@taktikorg/tempore-veniam-in
Advanced tools
![publish workflow](https://github.com/taktikorg/tempore-veniam-in/actions/workflows/publish.yml/badge.svg) [![Test Coverage](https://api.codeclimate.com/v1/badges/807f879a42c4aa48c475/test_coverage)](https://codeclimate.com/github/lukaskupczyk/@taktikorg
React consent management solution and banner for cookies, local storage, session storage and (external) scripts.
Check out the CodeSandbox for a working example.
yarn add @taktikorg/tempore-veniam-in
# or
npm install @taktikorg/tempore-veniam-in
Wrap the application in the ConsentProvider
. Provide settings via the options
prop. Optionally use the ConsentBanner
component to display a consent banner to the user.
/*
* index.tsx
*/
import { ConsentBanner, ConsentProvider } from '@taktikorg/tempore-veniam-in';
// styling
import '@taktikorg/tempore-veniam-in/dist/styles/style.css';
// ...
<ConsentProvider
options={{
services: [
{
id: 'myid',
name: 'MyName',
scripts: [
{ id: 'external-script', src: 'https://myscript.com/script.js' },
{ id: 'inline-code', code: `alert("I am a JavaScript code");` },
],
cookies: [{ pattern: 'cookie-name' }, { pattern: /regex/ }],
localStorage: ['local-storage-key'],
sessionStorage: ['session-storage-key'],
mandatory: true,
},
],
// customHash: 'my-custom-hash', // optional, e.g. when changing the options based on language
theme: 'light',
}}
>
<App />
<ConsentBanner
settings={{ hidden: false, label: 'More', modal: { title: 'Modal title' } }}
decline={{ hidden: false, label: 'No' }}
approve={{ label: 'Yes' }}
>
<>
Can we use cookies and external services according to our <a href="test">privacy policy</a> to improve the
browsing experience?
</>
</ConsentBanner>
</ConsentProvider>;
// ...
FAQs
![publish workflow](https://github.com/taktikorg/tempore-veniam-in/actions/workflows/publish.yml/badge.svg) [![Test Coverage](https://api.codeclimate.com/v1/badges/807f879a42c4aa48c475/test_coverage)](https://codeclimate.com/github/lukaskupczyk/@taktikorg
We found that @taktikorg/tempore-veniam-in demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.