libxo
fx
libxo | fx | |
---|---|---|
17 | 61 | |
338 | 19,671 | |
0.6% | 1.1% | |
0.0 | 8.6 | |
10 days ago | 4 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
fx
- Fx: View and process JSON with JavaScript on the command line
- Fx – a Terminal JSON viewer and processor
-
🔓5 Open Source Tools That Changed My Development Workflow Forever
Fx improves this with an interactive JSON processor made for developers. It combines viewing capabilities with powerful transformation functions that make complex data manipulation simple.
- Fx – terminal JSON viewer and processor
- Fx 36
-
Ink: React for Interactive CLI Apps
Any viewer of data that has 50,000 elements in it has this many items with a scroll wheel. It doesn't matter if it's on the screen at the same time, this is the kind of thing that the UI is supposed to be abstracting away from you; you just describe the UI and the renderer makes it appear on the screen. Example apps (not built with Ink, just some that fit into this category): less, https://fx.wtf, sqlite...
And this is why React apps end up with bad performance by default. Doesn't crop up in simple tests and light usage, but the bad scaling will catch up with you when you deploy to production.
-
Command Line Tools I Like (2022)
Coincidentally, yesterday I decided I needed a JSON TUI and landed on fx (https://github.com/antonmedv/fx), which seems to have come out of the Wave terminal project and looks quite similar to jless. Also uses vim keybindings.
- Show HN: JSON For You – Visualize JSON in graph or table views
-
Modern Unix Tool List
Seems like a pretty good collection of a lot of the tools I hear about these days, and also use myself sometimes.
I also like `fx`, which is like a combination of `jq` and `gdu`.
https://fx.wtf/
Oh, and also `gdu`, which is like `ndu` but faster:
https://github.com/dundee/gdu
-
Show HN: Posting v1 – The modern HTTP client that lives in your terminal
This is great, I could see myself using it daily. The only hindrance I've found so far is navigating large responses. Would be cool to have some way to collapse chunks of JSON (a la https://github.com/antonmedv/fx), or even just more vim key navigation, like G/gg, %, {/}, and search.
What are some alternatives?
PSScriptAnalyzer - Download ScriptAnalyzer from PowerShellGallery
rq - Record Query - A tool for doing record analysis and transformation
pdfalto - PDF to XML ALTO file converter
jless - jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
jtbl - CLI tool to convert JSON and JSON Lines to terminal, CSV, HTTP, and markdown tables
ngs - Next Generation Shell (NGS)