Gathering detailed insights and metrics for fastify-xml-body-parser
Gathering detailed insights and metrics for fastify-xml-body-parser
Gathering detailed insights and metrics for fastify-xml-body-parser
Gathering detailed insights and metrics for fastify-xml-body-parser
Fastify plugin / module to parse XML payload / body into JS object
npm install fastify-xml-body-parser
Typescript
Module System
Node Version
NPM Version
80.7
Supply Chain
95.5
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
19 Stars
48 Commits
8 Forks
4 Watchers
3 Branches
4 Contributors
Updated on Nov 27, 2023
Latest Version
2.2.0
Package Id
fastify-xml-body-parser@2.2.0
Unpacked Size
15.53 kB
Size
6.29 kB
File Count
8
NPM Version
8.19.3
Node Version
19.2.0
Published on
Feb 12, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
4
Fastify plugin / module to parse XML payload / body into JS object
1$npm install fastify-xml-body-parser 2#or 3$yarn add fastify-xml-body-parser
Sample POST body / payload
<sample>data</sample>
1 2const fastify = require('fastify')() 3 4fastify.register(require('fastify-xml-body-parser')) 5 6fastify.post('/', (req, reply) => { 7 console.log(req.body.sample)//data 8 reply.send(req.body) 9}) 10 11fastify.listen(8000, (err) => { 12 if (err) throw err 13})
The sent reply would be the object:
1{ 2 sample: 'data' 3}
This plugin use fast-xml-parser to parse the XML payload. So it accepts all the options supported by fast-xml-parser.
1 2var options = { 3 commentPropName: "#comment", 4 preserveOrder: true 5}; 6 7const fastify = require('fastify')() 8 9fastify.register(require('fastify-xml-body-parser'), options) 10
Additionaly, it supports following options
true
, this plugin validate the payload for valid XML syntax before parsing.["text/xml", "application/xml", "application/rss+xml"]
.Note: I've not included body size limit to this plugin because of following reasons
Tian
.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
Found 3/15 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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