# tree-sitter-html

> HTML grammar for tree-sitter

Latest version **0.23.2** (published 2024-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install tree-sitter-html
pnpm add tree-sitter-html
yarn add tree-sitter-html
bun add tree-sitter-html
```

## Health

**Score 50/100 (C)** — status: stable.

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

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

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.23.2 |
| Published | 2024-11-11 |
| First published | 2018-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 719 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 213 |
| Author | Max Brunsfeld |
| Maintainers | amaanq, ahlinc, maxbrunsfeld, tclem, daviwil, queerviolet, rewinfrey, atom-team, jasonrudolph, patrickthomson |
| Keywords | incremental, parsing, tree-sitter, html |

## Links

- npm: https://www.npmjs.com/package/tree-sitter-html
- Repository: https://github.com/tree-sitter/tree-sitter-html
- Homepage: https://github.com/tree-sitter/tree-sitter-html#readme
- Issues: https://github.com/tree-sitter/tree-sitter-html/issues
- npm.io page: https://npm.io/package/tree-sitter-html

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.2.2
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.2

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.23.2 (latest) — 2024-11-11
- 0.23.1 — 2024-11-10
- 0.23.0 — 2024-09-02
- 0.20.4 — 2024-08-18
- 0.20.3 — 2024-05-04
- 0.20.2 — 2024-03-18
- 0.20.1 — 2024-02-19
- 0.20.0 — 2023-10-03
- 0.19.0 — 2021-03-04
- 0.16.0 — 2019-12-10
- 0.15.1 — 2019-12-03
- 0.15.0 — 2019-06-07
- 0.13.5 — 2018-10-31
- 0.13.4 — 2018-08-30
- 0.13.3 — 2018-08-30
- … 10 more at https://npm.io/package/tree-sitter-html/versions

## README

# tree-sitter-html

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-html/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-html)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-html)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-html)

HTML grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

References

- [The HTML5 Spec](https://www.w3.org/TR/html5/syntax.html)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-html/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-html?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-html?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-html?logo=pypi&logoColor=ffd242

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