npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nerdsofalltrad.es/gdpr-cookie-monster

v0.1.3

Published

A minimal EU-GDPR compliant cookie consent banner for websites and shops (5.6K gzipped)

Downloads

5

Readme

GDPR Cookie Monster

Build Status Greenkeeper badge

A minimal EU-GDPR compliant cookie consent banner for websites and shops (5.6K gzipped).

This is Open-Source Software under MIT license. Use it, change it, copy it, break it. But don't sell it as your's.

Try it

$ npm i
$ npm start

Use it straight away in your Shop/ Website

Add the following script tag to your website, right before the closing </body> tag:

<script language="javascript" src="dist/gdpr-cookie-monster.min.js"></script>

Reload the page and a banner should appear at the bottom.

Reopening banner

The banner asks for permission to store cookies once per session for cookie deniers and once a month for cookie approvers.

To allow the user to change his mind (must have with GDPR-compliance) you must add a link in at least the footer of your page (every page):

<a href="#" id="noat-cookie-consent__setup">Cookie Settings</a>

This is the re-open link 🤙 I am the magic link (does not work on GitHub).

Customization

Custom texts

Add the following code right before the gdpr-cookie-monster script tag:

<script>
if (!window.noat) {
  window.noat = {};
}
window.noat.cookieConsent = {
  text: 'Use your text why you are using Cookies here',
  privacyPolicyText: 'The title of the cookie policy link',
  privacyPolicyUrl: 'The URL to the cookie policy',
  denyText: 'The deny button title',
  allowText: 'The allow button title'
};
</script>

Custom styles

Add the following code right before the gdpr-cookie-monster script tag:

<script>
if (!window.noat) {
  window.noat = {};
}
window.noat.cookieConsent = {
  // ... keep settings from above here
  useCustomCSS: true
};
</script>

If you are a CSS guru now you can style everythi:ng on your own:

  • .noat-cookie__consent
  • .noat-cookie-consent__banner
  • .noat-cookie-consent-banner__text
  • .noat-cookie-consent-banner__other-actions
  • .noat-cookie-consent-banner-other-actions__privacy-policy
  • .noat-cookie-consent-banner-other-actions__deny
  • .noat-cookie-consent-banner__allow

See it live

  • https://nerdsofalltrad.es
  • https://uhrwerk.berlin

Legal Notice

WE ARE NO LAWYERS. SINCE THIS IS OPEN-SOURCE SOFTWARE, CUSTOMIZABLE AND IMPOSSIBLE TO TRACK HOW IT IS USED WE CANNOT GIVE ANY WARRANTY OR PROMISE THAT THIS PIECE OF SOFTWARE IS FULLY GDPR COMPLIANT.

Please contribute if you find issues.