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

@vivareal/cookie-notifier

Package Overview
Dependencies
Maintainers
60
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.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
227
decreased by-2.99%
Maintainers
60
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 {
  mouted() {
    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.0.0"></script>
<script>
  new cookieNotifier({
    link: 'http://www.google.com',
    cta: {
      text: 'Entendi',
      background: '#1190cd',
      color: '#fff',
    },
  })
</script>

FAQs

Package last updated on 10 Feb 2021

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