uparser

v0.2.1
The uhtml template parser
uhtml template parser

µparser

Build Status Coverage Status

The µhtml and µcontent template parser.

import parse from 'uparser';

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

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

Metadata

  • ISC
  • Whatever
  • Andrea Giammarchi
  • released 3/20/2020

Downloads

Maintainers