<brief-me-gdpr>

A Web Component for a human readable GDPR compliance.

Creative Commons License CC By 4.0

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 4.0 International license.

Install

<brief-me-gdpr> is distributed on npm, so you can install it locally or use it via npm CDNs like unpkg.com or jsdelivr.

Local Installation

npm i brief-me-gdpr

CDN

npm CDNs like unpkg.com or jsdelivr can directly serve files that have been published to npm. This works great for standard JavaScript modules that the browser can load natively.

For this element to work from unpkg.com specifically, you need to include the ?module query parameter, which tells unpkg.com to rewrite "bare" module specificers to full URLs.

HTML

<script type="module" src="https://unpkg.com/brief-me-gdpr?module"></script>

JavaScript

import { BriefMeGDPR } from 'https://unpkg.com/brief-me-gdpr?module';