domhandler
npmv6.0.1TypeScriptHandler for htmlparser2 that turns pages into a dom
Safe to adopt
Yes — domhandler scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 176 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 44 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
BSD-2-Clause — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding domhandler to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing domhandler, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20.19.0
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the domhandler README.
const handler = new DomHandler([ <func> callback(err, dom), ] [ <obj> options ]);
// const parser = new Parser(handler[, options]);domhandler vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| domhandlerthis page | 0 | 6 | BSD-2-Clause | 5 months ago |
| domutils | 0 | 3 | BSD-2-Clause | 1 day ago |
| domelementtype | 0 | 4 | BSD-2-Clause | 1 day ago |
| @testing-library/jest-dom | 56M | 6 | MIT | 1 day ago |
| cheerio | 24.1M | 5 | MIT | 1 day ago |
| @expo/dom-webview | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by domhandler v6.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (12)
Used by
Popular packages that depend on domhandler.
render domhandler DOM nodes to a string
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
CSS selector engine supporting jQuery selectors
htmlparser2 tree adapter for parse5.
Utilities for working with htmlparser2's dom
a CSS selector compiler/engine
Relationship graph
Dependencies (left) and dependents (right) of domhandler.
Frequently installed together
An AST-based pattern checker for JavaScript.
TypeScript definitions for node
Next generation testing framework powered by Vite
Utilities for working with htmlparser2's dom
all the types of nodes in htmlparser2's dom
Prettier is an opinionated code formatter
render domhandler DOM nodes to a string
two functions: One that returns true, one that returns false
a CSS selector parser
Encode & decode XML and HTML entities with ease & speed
An HTTP/1.1 client, written from scratch for Node.js
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Release history
2 releases in the last two years, typically about 21 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.0.1latest | 5 months ago | 36 KB | BSD-2-Clause |
| 6.0.0 | 5 months ago | 36 KB | BSD-2-Clause |
| 5.0.3 | 4 years ago | 74 KB | BSD-2-Clause |
| 5.0.2 | 4 years ago | 73 KB | BSD-2-Clause |
| 5.0.1 | 4 years ago | 73 KB | BSD-2-Clause |
| 5.0.0 | 4 years ago | 73 KB | BSD-2-Clause |
| 4.3.1 | 4 years ago | 44 KB | BSD-2-Clause |
| 4.3.0 | 4 years ago | 42 KB | BSD-2-Clause |
| 4.2.2 | 5 years ago | 39 KB | BSD-2-Clause |
| 4.2.1 | 5 years ago | 37 KB | BSD-2-Clause |
| 4.2.0 | 5 years ago | 38 KB | BSD-2-Clause |
| 4.1.0 | 5 years ago | 35 KB | BSD-2-Clause |
| 4.0.0 | 5 years ago | 35 KB | BSD-2-Clause |
| 3.3.0 | 6 years ago | 32 KB | BSD-2-Clause |
| 3.2.0 | 6 years ago | 29 KB | BSD-2-Clause |
Overview
domhandler is an npm package that handler for htmlparser2 that turns pages into a dom. It has 6 known dependents in the graph. The latest version is 6.0.1, released under the BSD-2-Clause license.
Who should use it
Teams working in the npm ecosystem who need handler for htmlparser2 that turns pages into a dom and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (BSD-2-Clause).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Funding
Frequently asked questions
Should I use domhandler?
Yes — domhandler scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 2 releases in the last 2 years.
How do I install domhandler?
Run `npm install domhandler` to add domhandler to your npm project.
How many dependencies does domhandler have?
domhandler declares 13 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 44 KB on disk.
What license is domhandler released under?
domhandler is distributed under the BSD-2-Clause license.
How popular is domhandler?
npm does not publish download counts. Within PackageGraph's crawl, 6 known packages depend on domhandler.
Is domhandler still maintained?
The most recent release of domhandler (v6.0.1) was published 5 months ago.
Does domhandler run install scripts?
No. domhandler does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.