# uparser

> The uhtml template parser

Latest version **0.2.1** (published 2020-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install uparser
pnpm add uparser
yarn add uparser
bun add uparser
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2020-03-20 |
| First published | 2020-03-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | uhtml, template, parser |

## Links

- npm: https://www.npmjs.com/package/uparser
- Repository: https://github.com/WebReflection/uparser
- Homepage: https://github.com/WebReflection/uparser#readme
- Issues: https://github.com/WebReflection/uparser/issues
- npm.io page: https://npm.io/package/uparser

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2020-03-20
- 0.2.0 — 2020-03-17
- 0.1.0 — 2020-03-05
- 0.0.1 — 2020-03-05
- 0.0.0 — 2020-03-05

## README

# <em>µ</em>parser

[![Build Status](https://travis-ci.com/WebReflection/uparser.svg?branch=master)](https://travis-ci.com/WebReflection/uparser) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/uparser/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/uparser?branch=master)

The _[µhtml](https://github.com/WebReflection/uhtml#readme)_ and _[µcontent](https://github.com/WebReflection/ucontent#readme)_ template parser.

```js
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 />
```

---
_Source: https://npm.io/package/uparser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
