XML and HTML processing tasks for @metreeca/mime.
npm install @metreeca/gear # the job executor
npm install @metreeca/mime-xml # this package
Node.js 22 or later is required.
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
| Task | Description |
|---|---|
xml() |
XML parser |
html() |
HTML parser |
xpath() |
XPath selector |
focus() |
Content extractor |
untag() |
Markdown renderer |
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
XML and HTML processing tasks.
Parses XML and HTML documents into a shared tree shape, selects nodes by XPath expression, extracts the main content of web pages, renders it as Markdown, and reads selected values as the expected primitive types.
See