Favicon of htmlparser2

htmlparser2

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

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:

Share:

  • Stars

    4.8K
  • Forks

    394
  • Last commit

    2 months ago
  • License

    MIT
  • Language

    TypeScript
View Repository

Similar to htmlparser2

Favicon

 

  
  
Favicon

 

  
  
Favicon