MCPcopy
hub / github.com/inikulin/parse5

github.com/inikulin/parse5 @v8.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v8.0.1 ↗
724 symbols 2,398 edges 51 files 109 documented · 15%
README
<a href="https://github.com/inikulin/parse5">
    <img src="https://raw.github.com/inikulin/parse5/master/media/logo.png" alt="parse5" />
</a>

HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.

Build Status NPM Version Downloads Downloads total Coverage

parse5 provides nearly everything you may need when dealing with HTML. It's the fastest spec-compliant HTML parser for Node to date. It parses HTML the way the latest version of your browser does. It has proven itself reliable in such projects as jsdom, Angular, Lit, Cheerio, rehype and many more.


List of parse5 toolset packages

Online playground

Changelog

Extension points exported contracts — how you extend this code

TokenHandler (Interface)
(no doc) [10 implementers]
packages/parse5/lib/tokenizer/index.ts
TokenSourceData (Interface)
(no doc) [1 implementers]
test/utils/generate-tokenization-tests.ts
SAXParserOptions (Interface)
(no doc)
packages/parse5-sax-parser/lib/index.ts
ParserStream (Interface)
(no doc)
packages/parse5-parser-stream/lib/index.ts
RewritingStream (Interface)
(no doc)
packages/parse5-html-rewriting-stream/lib/index.ts
Document (Interface)
(no doc)
packages/parse5/lib/tree-adapters/default.ts
DatFile (Interface)
(no doc)
test/utils/parse-dat-file.ts
SaxToken (Interface)
(no doc)
packages/parse5-sax-parser/lib/index.ts

Core symbols most depended-on inside this repo

push
called by 169
packages/parse5/lib/parser/open-element-stack.ts
_err
called by 108
packages/parse5/lib/tokenizer/index.ts
_emitChars
called by 44
packages/parse5/lib/tokenizer/index.ts
_emitEOFToken
called by 43
packages/parse5/lib/tokenizer/index.ts
pop
called by 42
packages/parse5/lib/parser/open-element-stack.ts
_insertElement
called by 38
packages/parse5/lib/parser/index.ts
emitCurrentDoctype
called by 31
packages/parse5/lib/tokenizer/index.ts
createElement
called by 30
packages/parse5/lib/tree-adapters/interface.ts

Shape

Method 344
Function 294
Interface 45
Class 30
Enum 11

Languages

TypeScript100%

Modules by API surface

packages/parse5/lib/parser/index.ts180 symbols
packages/parse5/lib/tokenizer/index.ts129 symbols
packages/parse5/lib/tree-adapters/default.ts41 symbols
packages/parse5/lib/parser/open-element-stack.ts40 symbols
packages/parse5/lib/tree-adapters/interface.ts36 symbols
packages/parse5-htmlparser2-tree-adapter/lib/index.ts33 symbols
packages/parse5-sax-parser/lib/index.ts27 symbols
test/utils/generate-tokenization-tests.ts23 symbols
packages/parse5/lib/tokenizer/preprocessor.ts18 symbols
test/utils/common.ts15 symbols
packages/parse5/lib/parser/formatting-element-list.ts15 symbols
packages/parse5-html-rewriting-stream/lib/index.ts15 symbols

Dependencies from manifests, versioned

@eslint/js10.0.1 · 1×
@vitest/coverage-v84.1.4 · 1×
benchmark2.1.4 · 1×
domhandler6.0.1 · 1×
entities8.0.0 · 1×
eslint10.2.0 · 1×
eslint-config-prettier10.1.8 · 1×
eslint-plugin-unicorn-x3.2.1 · 1×
globals17.5.0 · 1×
human-format1.2.1 · 1×
husky9.1.7 · 1×
nano-staged1.0.2 · 1×

For agents

$ claude mcp add parse5 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact