KO
베타 번역

@core / consent

1.1.0 ▾
인증됨MIT
GitHub

GDPR 쿠키 동의: 거부·동의가 동등한 배너, 카테고리, 동의 기록, ConsentGate, Consent Mode v2

코드파일 9개컨텍스트약 743토큰검사 통과

.genpmignore 적용 후 주입될 정확한 트리입니다. 고정 대상:

src/lib/consent/adapters/hono.ts읽기 전용 · 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));
}

@core/consent 신고

패키지를 신고하려면 GitHub로 로그인하세요.