camaro
fontoxpath
camaro | fontoxpath | |
---|---|---|
3 | 2 | |
547 | 125 | |
- | 0.0% | |
6.2 | 6.8 | |
about 2 months ago | 2 days ago | |
JavaScript | TypeScript | |
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.
[1]: https://github.com/tuananh/camaro
- Fast XML to JSON using xpath templates in node
-
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.
fontoxpath
-
Using XPath in 2023
Not XPath, but for folks interested in querying (rather than walking) syntax trees for arbitrary nodes, this is also a cool feature of tree-sitter[1]. It uses a scheme-like syntax, and it’s impressively efficient.
And in terms of XPath, for folks using a JS stack, fontoxpath[2] supports a DOM facade adapter interface which allows for querying any arbitrary tree-like structure, so it could certainly handle the same use case.
1: https://tree-sitter.github.io/tree-sitter/using-parsers#patt...
2: https://github.com/FontoXML/fontoxpath
- Fontoxpath: A minimalistic XPath 3.1 and XQuery 3.1 engine
What are some alternatives?
xml-js - Converter utility between XML text and Javascript object / JSON text.
PugiXML - Light-weight, simple and fast XML parser for C++ with XPath support
fast-xml-parser - Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
HtmlAgilityPack - Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.
NodeLearn - Learning node js app
sirix - SirixDB is an an embeddable, bitemporal, append-only database system and event store, storing immutable lightweight snapshots. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach.
piscina - A fast, efficient Node.js Worker Thread Pool implementation
promises-spec - An open standard for sound, interoperable JavaScript promises—by implementers, for implementers.
koder - QR/bar code scanner for the Browser
caniuse - Raw browser/feature support data from caniuse.com
heic-app - 🖥 convert HEIC images to JPEG and PNG in the browser or as a PWA
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.