libxo
dasel
libxo | dasel | |
---|---|---|
17 | 44 | |
302 | 4,877 | |
2.0% | - | |
9.7 | 8.1 | |
15 days ago | 16 days ago | |
C | Go | |
BSD 2-clause "Simplified" 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.
libxo
-
jc: Converts the output of popular command-line tools to JSON
> In FreeBSD, this problem was solved with libxo[0]:
Libxo happens to be in the base system, but it is generally available:
* https://github.com/Juniper/libxo
* https://libxo.readthedocs.io/en/latest/
- Libxo: The Easy Way to Generate Text, XML, JSON, and HTML Output
-
Getting work done with PowerShell on Linux
Or make it flexible:
> libxo - A Library for Generating Text, XML, JSON, and HTML Output
* https://github.com/Juniper/libxo/
* https://wiki.freebsd.org/LibXo
Want structure? Ask for JSON or XML and parse. Otherwise it's the regular text output.
- Libxo: Generate text/XML/JSON structured output in one code path
-
Jc – JSONifies the output of many CLI tools
Can you trust it? Cli tool output is not exactly stable. I thought that's why libxo exists?
https://github.com/Juniper/libxo
- Libxo: Library for Generating Text, XML, JSON, and HTML Output
-
Curl gets a --json flag
Please consider https://github.com/Juniper/libxo or something even better than that.
-
You shouldn't parse the output of ls(1)
That would look a lot like FreeBSD. Many of the FreeBSD userland tools are set up to use the excellent libxo (https://github.com/Juniper/libxo) to allow the user's choice of how things are output.
- The growth of command line options, 1979-Present
- Tips on Adding JSON Output to Your CLI App
dasel
- jq 1.7 Released
-
Dasel - jq for yaml json and toml
wget https://github.com/TomWright/dasel/releases/download/v2.1.2/dasel_linux_amd64 install -o root -g root -m 0755 dasel_linux_amd64 /usr/bin/dasel
-
Why a world needs an UNIX-style image collection manager?
https://github.com/TomWright/dasel handles JSON, TOML, YAML, XML and CSV
-
Tool to interact with CSV
dasel - Comparable to jq / yq, but supports JSON, YAML, TOML, XML and CSV with zero runtime dependencies.
-
Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor
Another tool in this space is Dasel[1], which can handle querying/modifying JSON, YAML, TOML, XML and CSV files.
[1] https://github.com/TomWright/dasel
- Jc – JSONifies the output of many CLI tools
-
What are your coolest tools for one-liners ?
There also is dasel which combine jq, yq as well handling TOML, XML and CSV
- Run SQL on CSV, Parquet, JSON, Arrow, Unix Pipes and Google Sheet
-
What is the coolest Go open source projects you have seen?
dasel # most common human readable configs(json, yaml, xml...)
-
How to grep a specific field from curl output
I have recently switched to Dasel (https://github.com/TomWright/dasel ) due to its ability to work not only with JSON but also with other formats.
What are some alternatives?
pdfalto - PDF to XML ALTO file converter
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
elvish - Powerful scripting language & Versatile interactive shell
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
jtbl - CLI tool to convert JSON and JSON Lines to terminal, CSV, HTTP, and markdown tables
miller - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
PSReadLine - A bash inspired readline implementation for PowerShell
kubectl-jq - Kubectl plugin that works like "kubectl get" but runs everything through a JQ program you provide
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
Go Metrics - Go port of Coda Hale's Metrics library
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
jq - Command-line JSON processor