Skip to content

yummies/html

Description

DOM-centric utilities: sanitizing HTML with DOMPurify, computed style probes, downloads via temporary anchors, and small string helpers for safe markup. Prefer these over innerHTML with raw user input; keep CSP and server-side validation as the real security boundary.

Usage

ts
import { getComputedColor } from "yummies/html";

Released under the MIT License.