htmlparser2
npm4.8k GitHub starsv12.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.
| License | Category | Dependencies |
|---|---|---|
| BSD-2-Clause | Permissive | 4 of 5 |
| MIT | Permissive | 1 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 freeVulnerabilities
No known CVEs across published versions
Version history
| Version | Published | License |
|---|---|---|
| 12.0.0 | Mar 2026 | MIT |
| 11.0.0 | Mar 2026 | |
| 10.1.0 | Jan 2026 | |
| 10.0.0 | Dec 2024 | |
| 9.1.0 | Jan 2024 | |
| 9.0.0 | May 2023 | |
| 8.0.2 | Mar 2023 | |
| 8.0.1 | Apr 2022 | |
| 8.0.0 | Apr 2022 | |
| 7.2.0 | Nov 2021 | |
| 7.1.2 | Sep 2021 | |
| 7.1.1 | Aug 2021 | |
| 7.1.0 | Aug 2021 | |
| 7.0.0 | Aug 2021 | |
| 6.1.0 | Apr 2021 | |
| 6.0.1 | Mar 2021 | |
| 6.0.0 | Dec 2020 | |
| 5.0.1 | Oct 2020 | |
| 5.0.0 | Oct 2020 | |
| 4.1.0 | Feb 2020 | |
| 4.0.0 | Aug 2019 | |
| 3.10.1 | Feb 2019 | |
| 3.10.0 | Oct 2018 | |
| 3.9.2 | Oct 2016 | |
| 3.9.1 | Jun 2016 |
25 older releases
| Version | Published | License |
|---|---|---|
| 3.9.0 | Dec 2015 | |
| 3.8.3 | Jun 2015 | |
| 3.8.2 | Nov 2014 | |
| 3.8.1 | Nov 2014 | |
| 3.8.0 | Oct 2014 | |
| 3.7.3 | Jul 2014 | |
| 3.7.2 | May 2014 | |
| 3.7.1 | Mar 2014 | |
| 3.7.0 | Mar 2014 | |
| 3.6.0 | Mar 2014 | |
| 3.5.1 | Feb 2014 | |
| 3.5.0 | Feb 2014 | |
| 3.4.0 | Dec 2013 | |
| 3.3.0 | Sep 2013 | |
| 3.2.5 | Aug 2013 | |
| 3.2.4 | Aug 2013 | |
| 3.2.3 | Aug 2013 | |
| 3.2.2 | Aug 2013 | |
| 3.2.1 | Aug 2013 | |
| 3.2.0 | Aug 2013 | |
| 3.1.6 | Aug 2013 | |
| 3.1.5 | Jul 2013 | |
| 3.1.4 | Jun 2013 | |
| 3.1.3 | Jun 2013 | |
| 3.1.2 | Jun 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.
| Package | Version range | License |
|---|---|---|
| domelementtype | ^3.0.0 | BSD-2-Clause |
| domhandler | ^6.0.0 | BSD-2-Clause |
| domutils | ^4.0.2 | BSD-2-Clause |
| entities | ^8.0.0 | BSD-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.