camaro
fast-xml-parser
Our great sponsors
camaro | fast-xml-parser | |
---|---|---|
3 | 2 | |
548 | 2,330 | |
- | 3.1% | |
6.2 | 7.4 | |
13 days ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
camaro
-
Using XPath in 2023
back in the day where every OTA (online travel agent) and airlines use XML for their API, we had to integrate them in an API gateway where to unify their API schema and workflow.
we wrote a small package[1] (using pugixml) to transform XML to JSON using a custom Xpath template syntax. Make our job much easier.
-
Piscina – The Node.js Worker Pool
AFAIK this is a wrapper of worker_threads API. https://github.com/tuananh/camaro utilises this for multi-threading processing of XML input.
fast-xml-parser
-
XML: read and write with Node.js
After experimenting with a few different XML parsers I settled on fast-xml-parser. It's fast, it's simple and it's well maintained. It also handles XML namespaces and attributes well. (This appears to be rare in XML parsers.)
- Submit form display data from outsource xml
What are some alternatives?
xml2js - XML to JavaScript object converter.
Jison - Bison in JavaScript.
remark - markdown processor powered by plugins part of the @unifiedjs collective
js-yaml - JavaScript YAML parser and dumper. Very fast.
parse5 - HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.
marked - A markdown parser and compiler. Built for speed.
xml-js - Converter utility between XML text and Javascript object / JSON text.
URI.js - Javascript URL mutation library
strip-json-comments - Strip comments from JSON. Lets you use comments in your JSON files!
NodeLearn - Learning node js app
parse-json - Parse JSON with more helpful errors
nexrender - 📹 Data-driven render automation for After Effects