Gathering detailed insights and metrics for xml-parser-xo
Gathering detailed insights and metrics for xml-parser-xo
Gathering detailed insights and metrics for xml-parser-xo
Gathering detailed insights and metrics for xml-parser-xo
npm install xml-parser-xo
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
100
Quality
77.8
Maintenance
100
Vulnerability
100
License
TypeScript (95.09%)
Shell (4.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
108 Commits
7 Forks
2 Watchers
3 Branches
1 Contributors
Updated on May 12, 2025
Latest Version
4.1.4
Package Id
xml-parser-xo@4.1.4
Unpacked Size
42.18 kB
Size
7.97 kB
File Count
10
NPM Version
10.9.2
Node Version
22.14.0
Published on
May 11, 2025
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
An XML parser based on xml-parser.
$ npm install xml-parser-xo
1import xmlParser from 'xml-parser-xo'; 2 3var xml = `<?xml version="1.0" encoding="utf-8"?> 4<!-- Load the stylesheet --> 5<?xml-stylesheet href="foo.xsl" type="text/xsl" ?> 6<!DOCTYPE foo SYSTEM "foo.dtd"> 7<foo><![CDATA[some text]]> content</foo>`; 8 9xmlParser(xml);
1{ 2 "declaration": { 3 "type": "ProcessingInstruction", 4 "attributes": {"version": "1.0", "encoding": "utf-8"} 5 }, 6 "root": { 7 "type": "Element", 8 "name": "foo", 9 "attributes": {}, 10 "children": [ 11 {"type": "CDATA", "content": "<![CDATA[some text]]>"}, 12 {"type": "Text", "content": " content"} 13 ] 14 }, 15 "children": [ 16 {"type": "Comment", "content": "<!-- Load the stylesheet -->"}, 17 {"type": "ProcessingInstruction", "attributes": {"href": "foo.xsl", "type": "text/xsl"}}, 18 {"type": "DocumentType", "content": "<!DOCTYPE foo SYSTEM \"foo.dtd\">"}, 19 { 20 "type": "Element", 21 "name": "foo", 22 "attributes": {}, 23 "children": [ 24 {"type": "CDATA", "content": "<![CDATA[some text]]>"}, 25 {"type": "Text", "content": " content"} 26 ] 27 } 28 ] 29}
filter
: Function to filter out unwanted nodes by returning false
.
function(node) => boolean
() => true
strictMode
: True to throw an error when parsing XML document with invalid content like mismatched closing tags.
boolean
false
1import xmlParser from 'xml-parser-xo'; 2 3const xml = `<?xml version="1.0" encoding="utf-8"?> 4<!-- Load the stylesheet --> 5<?xml-stylesheet href="foo.xsl" type="text/xsl" ?> 6<!DOCTYPE foo SYSTEM "foo.dtd"> 7<foo><![CDATA[some text]]> content</foo>`; 8 9xmlParser(xml, { 10 filter: (node) => { 11 return node.type === 'Element' || node.type === 'Text'; 12 } 13});
1{ 2 "declaration": { 3 "type": "ProcessingInstruction", 4 "attributes": {"version": "1.0", "encoding": "utf-8"} 5 }, 6 "root": { 7 "type": "Element", 8 "name": "foo", 9 "attributes": {}, 10 "children": [ 11 {"type": "Text", "content": " content"} 12 ] 13 }, 14 "children": [ 15 { 16 "type": "Element", 17 "name": "foo", 18 "attributes": {}, 19 "children": [ 20 {"type": "Text", "content": " content"} 21 ] 22 } 23 ] 24}
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 2/27 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
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