{"library":"htmlparser2-svelte","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.1.1","tags":["javascript","html","parser","streams","xml","dom","rss","feed","atom","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install htmlparser2-svelte","imports":["import { Parser } from 'htmlparser2-svelte';","import { WritableStream } from 'htmlparser2-svelte';","import { parseFeed } from 'htmlparser2-svelte';","import type { ParserOptions } from 'htmlparser2-svelte';"]},{"cmd":"yarn add htmlparser2-svelte","imports":[]},{"cmd":"pnpm add htmlparser2-svelte","imports":[]}],"homepage":null,"github":"https://github.com/alexprey/htmlparser2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/htmlparser2-svelte","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/htmlparser2-svelte/compatibility"}}