</>PackageGraphPackageGraph

domhandler

npmv6.0.1TypeScript

Handler 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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

44 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-2-Clause

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
domhandlerthis page06BSD-2-Clause5 months ago
domutils03BSD-2-Clause1 day ago
domelementtype04BSD-2-Clause1 day ago
@testing-library/jest-dom56M6MIT1 day ago
cheerio24.1M5MIT1 day ago
@expo/dom-webview02MIT1 day ago

Dependencies

Declared by domhandler v6.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (12)

@biomejs/biome ^2.4.7@eslint/compat ^2.0.3@feedic/eslint-config ^0.3.1@types/node ^25.5.0eslint ^10.0.3eslint-config-biome ^2.1.3htmlparser2 ^10.1.0typedoc ^0.27.9typedoc-plugin-missing-exports ^3.1.0typescript ^5.8.3typescript-eslint ^8.57.1vitest ^4.0.18

Used by

Popular packages that depend on domhandler.

Relationship graph

Dependencies (left) and dependents (right) of domhandler.

Frequently installed together

Release history

2 releases in the last two years, typically about 21 days apart.

Recent versions of domhandler
VersionPublishedSizeLicense
6.0.1latest5 months ago36 KBBSD-2-Clause
6.0.05 months ago36 KBBSD-2-Clause
5.0.34 years ago74 KBBSD-2-Clause
5.0.24 years ago73 KBBSD-2-Clause
5.0.14 years ago73 KBBSD-2-Clause
5.0.04 years ago73 KBBSD-2-Clause
4.3.14 years ago44 KBBSD-2-Clause
4.3.04 years ago42 KBBSD-2-Clause
4.2.25 years ago39 KBBSD-2-Clause
4.2.15 years ago37 KBBSD-2-Clause
4.2.05 years ago38 KBBSD-2-Clause
4.1.05 years ago35 KBBSD-2-Clause
4.0.05 years ago35 KBBSD-2-Clause
3.3.06 years ago32 KBBSD-2-Clause
3.2.06 years ago29 KBBSD-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.