# @html-eslint/template-parser

> HTML parser for template literals

Latest version **0.66.0** (published 2026-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @html-eslint/template-parser
pnpm add @html-eslint/template-parser
yarn add @html-eslint/template-parser
bun add @html-eslint/template-parser
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.66.0 |
| Published | 2026-09-13 |
| First published | 2024-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 274 |
| Author | yeonjuan |
| Maintainers | yeonjuan-joah |
| Keywords | html, eslint, parser, template-literal, lit, ast |

## Links

- npm: https://www.npmjs.com/package/@html-eslint/template-parser
- Repository: https://github.com/yeonjuan/html-eslint
- Homepage: https://github.com/yeonjuan/html-eslint#readme
- Issues: https://github.com/yeonjuan/html-eslint/issues
- npm.io page: https://npm.io/package/@html-eslint/template-parser

## Dependencies (2)

- [es-html-parser](https://npm.io/package/es-html-parser.md) 0.3.1
- [@html-eslint/types](https://npm.io/package/@html-eslint/types.md) ^0.66.0

## 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.66.0 (latest) — 2026-09-13
- 0.58.0-alpha.0 (alpha) — 2026-03-03
- 0.65.0 — 2026-08-17
- 0.64.0 — 2026-07-10
- 0.63.0 — 2026-06-27
- 0.62.0 — 2026-06-09
- 0.61.0 — 2026-05-24
- 0.60.0 — 2026-04-29
- 0.59.0 — 2026-04-05
- 0.58.1 — 2026-03-05
- 0.58.0 — 2026-03-04
- 0.57.0 — 2026-02-23
- 0.56.0 — 2026-02-20
- 0.55.0 — 2026-02-14
- 0.54.0 — 2026-01-26
- … 36 more at https://npm.io/package/@html-eslint/template-parser/versions

## README

# `@html-eslint/template-parser`

Parser for HTML written inside JavaScript/TypeScript template literals (e.g., Lit).

## Installation

```bash
npm install --save-dev @html-eslint/template-parser
```

## Usage

```js
const { parse } = require("@html-eslint/template-parser");

parse(templateLiteralNode, sourceCode, {
  Tag(node) {
    // visit HTML tag nodes
  },
  AttributeValue(node) {
    // visit attribute value nodes
  },
});
```

## Documentation

- [Getting Started](https://html-eslint.org/docs/getting-started)

## License

MIT

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