Skip to main content
FOSSA Logo
Skip to package details

htmlparser2

npm4.8k GitHub stars

v12.0.0 · Mar 2026 · MIT (top-level declared license)

npm install htmlparser2
  • No known CVEs
  • 399.8M downloads/mo
  • 80 versions

Description

The fast & forgiving HTML and XML parser

Licenses

Declared license

MIT (top-level declared license of htmlparser2)

Transitive dependency licenses

htmlparser2 pulls in 5 transitive dependencies across 2 distinct licenses, all permissive.

LicenseCategoryDependencies
BSD-2-ClausePermissive4 of 5
MITPermissive1 of 5

This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.

Need htmlparser2 approved? Get the full license and vulnerability report for your codebase. Scan free.

Scan free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
12.0.0Mar 2026MIT
11.0.0Mar 2026
10.1.0Jan 2026
10.0.0Dec 2024
9.1.0Jan 2024
9.0.0May 2023
8.0.2Mar 2023
8.0.1Apr 2022
8.0.0Apr 2022
7.2.0Nov 2021
7.1.2Sep 2021
7.1.1Aug 2021
7.1.0Aug 2021
7.0.0Aug 2021
6.1.0Apr 2021
6.0.1Mar 2021
6.0.0Dec 2020
5.0.1Oct 2020
5.0.0Oct 2020
4.1.0Feb 2020
4.0.0Aug 2019
3.10.1Feb 2019
3.10.0Oct 2018
3.9.2Oct 2016
3.9.1Jun 2016
25 older releases
Older published versions
VersionPublishedLicense
3.9.0Dec 2015
3.8.3Jun 2015
3.8.2Nov 2014
3.8.1Nov 2014
3.8.0Oct 2014
3.7.3Jul 2014
3.7.2May 2014
3.7.1Mar 2014
3.7.0Mar 2014
3.6.0Mar 2014
3.5.1Feb 2014
3.5.0Feb 2014
3.4.0Dec 2013
3.3.0Sep 2013
3.2.5Aug 2013
3.2.4Aug 2013
3.2.3Aug 2013
3.2.2Aug 2013
3.2.1Aug 2013
3.2.0Aug 2013
3.1.6Aug 2013
3.1.5Jul 2013
3.1.4Jun 2013
3.1.3Jun 2013
3.1.2Jun 2013

npm install htmlparser2 resolves to the 12.x line today. Older major lines may still receive fixes.

Direct dependencies

4 direct dependencies, 5 in total including transitive. Licenses across the full tree are summarized under Licenses.

Direct dependencies
PackageVersion rangeLicense
domelementtype^3.0.0BSD-2-Clause
domhandler^6.0.0BSD-2-Clause
domutils^4.0.2BSD-2-Clause
entities^8.0.0BSD-2-Clause

Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.

Popularity

Downloads last month
399.8M
Known dependents in this corpus
4,571
GitHub stars
4.8k
OpenSSF score
7.2 / 10

FAQ

What is the latest version of htmlparser2?
The latest version of htmlparser2 is 12.0.0, published March 2026.
What license is htmlparser2 under?
htmlparser2 declares MIT as its top-level declared license. Its dependency tree spans 2 distinct licenses.
Does htmlparser2 have known vulnerabilities?
No known CVEs are recorded against published versions of htmlparser2.
How do I install htmlparser2?
Install htmlparser2 with npm install htmlparser2.
How do I generate an SBOM that includes htmlparser2?
FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes htmlparser2. Generate an SPDX or CycloneDX SBOM free.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from the npm public registry API.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.