@webreflection/uparser

v0.3.3
The uhtml template parser
uhtml template parser

µparser

Build Status Coverage Status

The µhtml and µcontent template parser.

import parse from '@webreflection/uparser';

const html = template => parse(template, 'secret', false);
const svg = template => parse(template, 'secret', true);

html`<div />`; // <div></div>
svg`<rect />`; // <rect />
npm i @webreflection/uparser

Metadata

  • ISC
  • Whatever
  • Andrea Giammarchi
  • released 11/10/2023

Downloads

Maintainers