# @webreflection/uparser

> The uhtml template parser

Latest version **0.4.0** (published 2024-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webreflection/uparser
pnpm add @webreflection/uparser
yarn add @webreflection/uparser
bun add @webreflection/uparser
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2024-10-23 |
| First published | 2021-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 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/@webreflection/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/@webreflection/uparser

## Dependencies (1)

- [domconstants](https://npm.io/package/domconstants.md) ^1.1.6

## 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.4.0 (latest) — 2024-10-23
- 0.3.3 — 2023-11-10
- 0.3.2 — 2023-11-07
- 0.3.1 — 2023-11-06
- 0.3.0 — 2023-11-06
- 0.2.4 — 2022-05-09
- 0.2.3 — 2022-04-29
- 0.2.2 — 2022-04-29
- 0.2.1 — 2021-12-21

## 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 '@webreflection/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/@webreflection/uparser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
