🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
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 🍪

latest
Source
npmnpm
Version
1.1.5
Version published
Weekly downloads
43
-14%
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