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
Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
npm install fast-xml-parser
99.6
Supply Chain
99.6
Quality
80.8
Maintenance
100
Vulnerability
100
License
Security Fix
Published on 07 Jun 2023
v4
Published on 06 Jan 2022
Fixed Parsing issues
Published on 19 May 2020
Validator fix for & characters and no more settings for locale range
Published on 12 Jan 2020
Update validator for error message
Published on 24 Nov 2019
Update tagValueProcessor to work with date value (broken changes)
Published on 25 Aug 2019
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2,589 Stars
844 Commits
309 Forks
31 Watching
6 Branches
95 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
JavaScript (95.7%)
HTML (4.06%)
TypeScript (0.24%)
Cumulative downloads
Total Downloads
Last day
-11.7%
4,397,509
Compared to previous day
Last week
1.5%
25,934,344
Compared to previous week
Last month
7.7%
108,721,401
Compared to previous month
Last year
69.5%
995,045,601
Compared to previous year
[![NPM quality][quality-image]][quality-url]
Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.
I had recently published a book, The Power Glasses. Please have a look. Your feedback would be helpful. You can mail me for a free copy.
Sponsor this project
The list of users are mostly published by Github or communicated directly. Feel free to contact if you find any information wrong.
<br>
in HTML), stop nodes (Eg <script>
in HTML) are supported.I developed v5 in Apr 2023. And I didn't get the chance to complete all the features. I've ensured that new features don't impact performance. With v5, you have more control on parsing output. Check docs for syntax help and basic understanding.
Please leave a comment in discussion forum for your suggestions and if you really need v5.
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 | v5 |
documents |
note: version 5 is released with version 4 tfor experimental use. Based on it's demand, it'll be developed and the features can be different in final release.
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]
The latest stable version of the package.
Stable Version
2
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
1
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
1
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
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
7 commit(s) and 17 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
project is fuzzed
Details
Reason
Found 11/30 approved changesets -- score normalized to 3
Reason
7 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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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 More