up
libxo
Our great sponsors
up | libxo | |
---|---|---|
25 | 17 | |
8,112 | 296 | |
- | 0.7% | |
0.0 | 0.0 | |
7 months ago | about 17 hours ago | |
Go | C | |
Apache License 2.0 | BSD 2-clause "Simplified" 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.
up
-
Fx – Terminal JSON Viewer
This fx rewrite is very exciting. I'll have to try it. I thought of fx as a wrapper around jq, that allowed quick iteration over building jq scripts. Sort of an Ultimate Plumber [1] but only for jq. It looks like it is now more like a JavaScript processor plus an interactive viewer.
Someone mention Visidata[2]? VisiData is also a TUI that is great on tabular data, and it can work with json. If your JSON is mostly tabular in nature, Visidata does a great job at showing that data and allowing you to explore it. A lot of json I deal with is tabular-like data. There is a great tutorial [3], that can help you get your bearings with Visidata. Once you understand those basics you might want to look at this thread [4] for what commands you can use with json.
[1] Ultimate Plumber: https://github.com/akavel/up
-
Show HN: LineSelect, shell utility to interactively select lines in a pipeline
Ultimate plumber can do this.
-
`jqp`, a TUI playground for `jq`
Been using up for years but this looks nice too
-
An interactive wrapper around `jq`
Fun. But I can achieve the same result (I think) with ultimate plumber and regular jq, but without being restricted just to jq. Feel free to correct me.
-
What are some useful cli tools that arent popular?
Up - The Ultimate Plumber makes the best pipes !
-
A list of new(ish) command line tools – Julia Evans
Also featured in that thread: https://github.com/akavel/up
For example:
As an alternative allowing the use of any shell command/pipeline on the results interactively, see also: https://github.com/akavel/up
- RegExr: Learn, Build and Test Regex
-
Is there any command-line application that you wish existed but doesn't (or isn't as good as you wished)?
Would https://github.com/akavel/up solve your problem?
-
The Invisible JavaScript Backdoor
Do you have some tricks for how you handle filtering through logs? Or if there could be a tool thst could help you or mitigate your most critical issue[s]?
I found filtering through longs a major pain even for a fully sighted person like me, so I wrote a tool to help me with that, but it's fully in a "TUI" paradigm (i.e. curses-like), so I presume it wouldn't help you much (https://github.com/akavel/up). No promises, given that the tool as is scratched my itch, but I am honestly curious if something similar could reduce your PITA, including whether this specific tool could be made useful for you through some minimal effort on my side.
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:
- 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.
-
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?
-
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
libxo:
> The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced. The application calls a function "xo_emit" to product output that is described in a format string. A "field descriptor" tells libxo what the field is and what it means.
* https://github.com/Juniper/libxo
Then add an "--output-format" option.
-
Bringing the Unix Philosophy to the 21st Century: Make JSON a default output option.
libxo allows switching the output format (plaintext, JSON, XML, HTML)
What are some alternatives?
pdfalto - PDF to XML ALTO file converter
elvish - Powerful scripting language & Versatile interactive shell
PSReadLine - A bash inspired readline implementation for PowerShell
jtbl - CLI tool to convert JSON and JSON Lines to terminal, CSV, HTTP, and markdown tables
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!
zsh-history-substring-search - 🐠 ZSH port of Fish history search (up arrow)
dive - A tool for exploring each layer in a docker image
nvim-jqx - Populate the quickfix with json entries
fx - Terminal JSON viewer & processor
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
fzf-tab - Replace zsh's default completion selection menu with fzf!
xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.