npm.io
0.4.0 • Published 1 year ago

@webreflection/uparser

Licence
MIT
Version
0.4.0
Deps
1
Size
8 kB
Vulns
0
Weekly
0
Stars
14

µ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 />

Keywords