EN

@core / consent

1.1.0 ▾
verifiedMIT
GitHub

GDPR cookie consent: banner with equal reject/accept, categories, proof records, ConsentGate and Google Consent Mode v2

Code9 filesContext~743 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/consent/adapters/hono.tsread-only · 37d6a8f
// Adaptador Hono: `app.route('/api/consent', consentRoutes({ cookiesByCategory: { analytics: ['_ga'], marketing: ['_fbp'] } }))`.
import { Hono } from 'hono';
import { handleConsent } from './http.ts';

export function consentRoutes(opts: Parameters<typeof handleConsent>[1] = {}) {
  return new Hono().get('/', (c) => handleConsent(c.req.raw, opts)).post('/', (c) => handleConsent(c.req.raw, opts));
}

Report @core/consent

Sign in with GitHub to report a package.