Preparing for system design interviews?  Try bugzed.com →

HTMLParser2 Svelte

JSON →
library 4.1.1 ·javascript
verified Jun 17, 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 8
actors 3 distinct systems
last hit 16d ago AhrefsBot
GPTBot
4
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France