UNPKG

typing-flow

Version:

Npm package for typing animation for web

13 lines (12 loc) 298 B
const o = (t) => { const e = t.tagName.toLowerCase(); let a = e; for (const s of t.attributes) a += ` ${s.name}="${s.value}"`; return { open: `<${a}>`, close: `</${e}>` }; }, n = new DOMParser(), r = (t) => t.startsWith("<") && t.endsWith(">"); export { o as g, r as i, n as t };