๐ฑ Lightweight offline DOM
HEALTH ? 100 / Healthy
๐ฑ Lightweight offline DOM
// momentum
// why it's here
// how to help
// readme
A lightweight offline DOM for Node.js, Bun and browsers: HTML parser, CSS selectors, JSX and serializers to HTML, XML, Markdown, plain text and safe HTML.
Parses real-world pages several times faster than linkedom, happy-dom and jsdom, stays linear on hostile input, and has only two small dependencies. Made for server-side rendering, static site generation, post-processing HTML, and cleaning up user content.
querySelector, querySelectorAll, matches and the .handle() helper