{"library":"dom-parser","type":"library","category":null,"description":"dom-parser is a lightweight, zero-dependency library for parsing HTML and XML documents into a DOM-like structure using regular expressions. It provides a subset of standard DOM API methods like `getElementById`, `getElementsByClassName`, and `getElementsByTagName`, along with common node properties such as `innerHTML` and `textContent`. The current stable version is 1.1.5. Due to its regexp-based parsing, it is notably fast and compact, making it suitable for environments where full-fledged, specification-compliant DOM parsing (like `jsdom` or browser DOMParser) is overkill or too resource-intensive. Its main differentiator is performance and minimal footprint by leveraging regexps, though this approach might have limitations with highly malformed or complex HTML structures compared to state-machine parsers.","language":"javascript","status":"active","version":"1.1.5","tags":["javascript","domparser","dom","parser","xml","html","xmlparser","htmlparser","scraping","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dom-parser","imports":["import { parseFromString } from 'dom-parser';","import type { Dom } from 'dom-parser';","import type { Node } from 'dom-parser';"]},{"cmd":"yarn add dom-parser","imports":[]},{"cmd":"pnpm add dom-parser","imports":[]}],"homepage":null,"github":"https://github.com/ershov-konst/dom-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dom-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dom-parser/compatibility"}}