Favicon of htmlparser2

htmlparser2

PublishedLast updated

htmlparser2 is the fastest Node.js HTML and XML parser, offering a streaming, event-driven API with a forgiving approach to malformed markup.

Screenshot of htmlparser2 website

Sources

github.com

Verified against the fb55/htmlparser2 repository and the npm package.

htmlparser2 is a low-level, high-performance HTML and XML parser for Node.js that prioritizes speed through a streaming, event-driven architecture.

Key Features:

  • Fastest Parser - Benchmarked as the fastest HTML parser available for Node.js
  • Streaming API - Event-driven parsing for memory-efficient processing of large documents
  • Forgiving Mode - Handles broken and malformed HTML without errors
  • Rich Ecosystem - Includes domhandler, domutils, and css-select for full DOM operations
  • XML Support - Parses both HTML and XML with configurable strictness

Whether you're processing large HTML datasets, building custom extraction pipelines, or need a fast parser for real-time scraping, htmlparser2 provides unmatched speed with a flexible, low-level API.

Categories:
Features:
HTML ParsingXML ParsingCSS SelectorsReal-Time StreamingOpen Source

Share:

Similar to htmlparser2

Favicon

 

  
  
Favicon

 

  
  
Favicon