1 个仓库
Tools for processing and rewriting HTML in chunks to minimize memory footprints.
Distinct from HTML Streaming: Focuses on the parsing/processing of streams rather than the server-side delivery of rendered content.
Explore 1 awesome GitHub repository matching web development · Incremental HTML Processing. Refine with filters or upvote what's useful.
parse5 是一个适用于 Node.js 的 WHATWG HTML 解析器和序列化器。它遵循 HTML Living Standard 定义的逻辑,将 HTML 字符串转换为文档对象模型 (DOM),并将这些树结构转换回有效的 HTML 字符串。 该项目作为一个流式 HTML 处理器,使用增量解析来分块处理大型文档。它包含一个符合 HTML5 标准的标记器,使用状态机方法根据官方 Web 规范将输入分解为标记。 该工具集涵盖了 HTML 文档解析、序列化以及通过流进行的实时重写。这些功能允许在保持不同环境间一致性的同时,对 HTML 文档进行程序化分析和数据提取。
Processes large HTML documents in chunks to minimize memory usage during analysis and real-time rewriting.