UNPKG

typing-flow

Version:

Npm package for typing animation for web

2 lines (1 loc) 302 B
"use strict";const s=t=>{const e=t.tagName.toLowerCase();let a=e;for(const r of t.attributes)a+=` ${r.name}="${r.value}"`;return{open:`<${a}>`,close:`</${e}>`}},o=new DOMParser,n=t=>t.startsWith("<")&&t.endsWith(">");exports.getBrowserNodeTagView=s;exports.isTagString=n;exports.typingFlowDOMParser=o;