fontoxpath
yq
Our great sponsors
fontoxpath | yq | |
---|---|---|
2 | 24 | |
125 | 2,472 | |
2.4% | - | |
6.8 | 7.7 | |
10 days ago | 2 days ago | |
TypeScript | Python | |
MIT License | Apache License 2.0 |
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.
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
yq
- Jaq – A jq clone focused on correctness, speed, and simplicity
- jq 1.7 Released
- Using XPath in 2023
-
How to troubleshoot yaml parsing error "did not find expected key"?
Install jq and yq, and wrap your commands with | yq -y ..
-
Memes are all cool and all. But this is your daily remaining that 10000! =
Confusingly there is another project called yq that does exactly what you're suggesting and it's a preprocessor that converts yaml to json and then used jq. https://github.com/kislyuk/yq
-
inhumane and error-prone
yq
-
Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor
I personally find the yq tool from https://github.com/kislyuk/yq much more useful: it has all the same options and formats as `jq` (as it's really a wrapper around jq). Rather than the `yq` in the OP here where only partial functionality exists.
- The YAML Document from Hell
-
Scraping weather info
XML data from the API can be parsed and filtered with xq. There may be multiple ways to get it; first try the yq toolset which includes it.
-
Show HN: Xq – command-line XML and HTML beautifier and content extractor
There is also yq [1], which attempts the same for yaml, toml and xml. (And confusingly also contains a binary named "xq" for querying xml, however with a different syntax)
[1] https://github.com/kislyuk/yq
What are some alternatives?
PugiXML - Light-weight, simple and fast XML parser for C++ with XPath support
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
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.
yq - yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
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.
jq - Command-line JSON processor
promises-spec - An open standard for sound, interoperable JavaScript promises—by implementers, for implementers.
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
caniuse - Raw browser/feature support data from caniuse.com
xmlq - filter xml in the command line with xpath
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
hn-search - Hacker News Search