consentform-js
v1.0.0
Published
GDPR/CCPA consent manager with script wrapping and localization.
Maintainers
Readme
ConsentForm.js
Author: Vatistas Dimitris (vatistasdim)
Seamless GDPR/CCPA cookie and data collection consent manager for websites and web apps.
Features
- Auto-detects and defers third-party scripts
- Displays customizable consent UI
- Region-aware (EU vs US)
- Language localization (en, fr, es)
- Easily extendable
Usage
import ConsentForm from 'consentform-js';
const consent = new ConsentForm({
region: 'auto',
language: 'en',
styles: { theme: 'dark' }
});
consent.onConsentGiven(data => {
console.log('Consent:', data);
});