HTMLParser2 Svelte

JSON →
library 4.1.1 ·javascript
verified May 27, 2026

htmlparser2-svelte is a robust and forgiving HTML, Svelte, XML, and RSS parser for JavaScript environments, currently at version 4.1.1. It enhances the core `htmlparser2` library by adding native support for Svelte-specific syntax, particularly JavaScript expressions within tag attributes (e.g., `on:click={() => ...}`). The library offers both a synchronous `Parser` interface and an asynchronous `WritableStream` for processing streaming input, making it suitable for a wide range of parsing tasks. Its design emphasizes speed and fault tolerance, making it ideal for parsing real-world, potentially malformed HTML, and especially beneficial for tooling that needs to understand Svelte component structures. Releases appear to be driven by feature additions and maintenance, with 4.1.0 introducing support for JS expressions in attributes.

total hits 15
actors 7 distinct systems
last hit 1d ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇧🇷 Brazil