Gathering detailed insights and metrics for fast-xml-parser
Gathering detailed insights and metrics for fast-xml-parser
Gathering detailed insights and metrics for fast-xml-parser
Gathering detailed insights and metrics for fast-xml-parser
htmlparser2
Fast & forgiving HTML/XML parser
cheerio
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
saxen
A tiny, super fast, namespace aware sax-style XML parser written in plain JavaScript
@rgrove/parse-xml
A fast, safe, compliant XML parser for Node.js and browsers.
Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
npm install fast-xml-parser
Typescript
Module System
Node Version
NPM Version
99.4
Supply Chain
99.6
Quality
91.7
Maintenance
100
Vulnerability
100
License
upgrade to ESM module and fixing value parsing issues
Updated on May 05, 2025
Summary update on all the previous releases from v4.2.4
Updated on Feb 27, 2025
Security Fix
Updated on Jun 07, 2023
v4
Updated on Jan 06, 2022
Fixed Parsing issues
Updated on May 19, 2020
Validator fix for & characters and no more settings for locale range
Updated on Jan 12, 2020
JavaScript (93.83%)
HTML (3.51%)
TypeScript (2.66%)
Total Downloads
2,599,024,076
Last Day
1,444,258
Last Week
30,099,008
Last Month
129,277,317
Last Year
1,267,949,963
MIT License
2,825 Stars
901 Commits
326 Forks
31 Watchers
8 Branches
104 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
5.2.5
Package Id
fast-xml-parser@5.2.5
Unpacked Size
555.10 kB
Size
147.89 kB
File Count
55
NPM Version
10.9.2
Node Version
22.14.0
Published on
Jun 08, 2025
Cumulative downloads
Total Downloads
Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.
It can handle big files (tested up to 100mb). XML Entities, HTML entities, and DOCTYPE entites are supported. Unpaired tags (Eg <br>
in HTML), stop nodes (Eg <script>
in HTML) are supported. It can also preserve Order of tags in JS object
We've recently launched Flowgger
Don't forget to check our new library Text2Chart that constructs flow chart out of simple text. Very helpful in creating or alayzing an algorithm, and documentation purpose.
Sponsor this project
This is a donation. No goods or services are expected in return. Any requests for refunds for those purposes will be rejected.
The list of users are mostly published by Github or communicated directly. Feel free to contact if you find any information wrong.
To use as package dependency
$ npm install fast-xml-parser
or
$ yarn add fast-xml-parser
To use as system command
$ npm install fast-xml-parser -g
To use it on a webpage include it from a CDN
Example
As CLI command
1$ fxparser some.xml
In a node js project
1const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser"); 2 3const parser = new XMLParser(); 4let jObj = parser.parse(XMLdata); 5 6const builder = new XMLBuilder(); 7const xmlContent = builder.build(jObj);
In a HTML page
1<script src="path/to/fxp.min.js"></script> 2: 3<script> 4 const parser = new fxparser.XMLParser(); 5 parser.parse(xmlContent); 6</script>
Bundle size
Bundle Name | Size |
---|---|
fxbuilder.min.js | 6.5K |
fxparser.min.js | 20K |
fxp.min.js | 26K |
fxvalidator.min.js | 5.7K |
v3 | v4 and v5 | v6 |
documents |
note:
negative means error
Usage Trend of fast-xml-parser
This project exists thanks to all the people who contribute. [Contribute].
Thank you to all our backers! 🙏 [Become a backer]
7.5/10
Summary
fast-xml-parser vulnerable to ReDOS at currency parsing
Affected Versions
>= 4.3.5, < 4.4.1
Patched Versions
4.4.1
7.5/10
Summary
fast-xml-parser vulnerable to Regex Injection via Doctype Entities
Affected Versions
>= 4.1.3, < 4.2.4
Patched Versions
4.2.4
6.5/10
Summary
fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name
Affected Versions
< 4.1.2
Patched Versions
4.1.2
0/10
Summary
fast-xml-parser regex vulnerability patch could be improved from a safety perspective
Affected Versions
= 4.2.4
Patched Versions
4.2.5
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
20 commit(s) and 17 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
project is fuzzed
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
8 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
4.8%
1,444,258
Compared to previous day
Last Week
-6.3%
30,099,008
Compared to previous week
Last Month
2.5%
129,277,317
Compared to previous month
Last Year
56.6%
1,267,949,963
Compared to previous year