Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vivareal/cookie-notifier

Package Overview
Dependencies
Maintainers
118
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivareal/cookie-notifier

Cookie notifier 🍪

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
233
decreased by-6.05%
Maintainers
118
Weekly downloads
 
Created
Source

Preview

options

optionDescription
linklink of policy of cookies
ctaobject with cta configurations
cta.textText of button
cta.backgorundbackground of button
cta.colorcolor of button text

VUE

Install the npm dependency

npm i @vivareal/cookie-notifier

import and execute then in your App.js for example.

// App.js
import cookieNotifier from '@vivareal/cookie-notifier'

export default {
  mounted() {
    new cookieNotifier({
      link: 'http://www.google.com',
      cta: {
        text: 'Entendi',
        background: '#1190cd',
        color: '#fff',
      },
    })
  }
}

Landingpages

Insert this on a script place in unbouce, WIX or other plataform. Or dectily in index.html page inside the <body> tag. The source of script have to follow this pattern unpkg.com/:package@:version/:file. See the documentation in unpkg

<script src="https://unpkg.com/@vivareal/cookie-notifier@^1"></script>
<script>
  new cookieNotifier({
    link: 'http://www.google.com',
    cta: {
      text: 'Entendi',
      background: '#1190cd',
      color: '#fff',
    },
  })
</script>

FAQs

Package last updated on 07 Jun 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc