Fast HTML Parser (version 1.0.1) is an HTML parsing library designed for high performance and low-cost processing of large HTML files, generating a simplified DOM tree with basic element query support. It prioritizes speed, often outperforming alternatives like older versions of `htmlparser2` in its benchmarks. Key differentiators include its focus on raw parsing speed and a simplified DOM structure. However, this package is effectively abandoned, with its last release over a decade ago. It lacks active maintenance, modern features, and critical security updates. For current projects requiring a fast HTML parser, `node-html-parser` (a separate, actively maintained package that appears to be a spiritual successor or re-implementation) is the recommended alternative, offering similar performance goals with ongoing development and broader feature support.
Verified import paths — ran on the pinned version, not inferred.
This package is CommonJS-only; direct ES module imports are not supported.
The `parse` function is a method on the `HTMLParser` object, not a top-level named export for CommonJS modules, and ESM imports are not supported by this version.
HTMLElement is an internal class representing parsed DOM elements; it is not exposed for direct import.
Demonstrates parsing HTML, accessing the root element, querying elements by ID and class, and extracting text and raw HTML content.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.