wlezzar / jtab Goto Github PK
View Code? Open in Web Editor NEWPrint json data as a table from the command line
Print json data as a table from the command line
Just tried to generate a markdown table but it doesn't work. In fact, this format :
1 | 2
------
3 | 4
5 | 6
is not a valid markdown table. The format must be like this :
| 1 | 2 |
|---|---|
| 3 | 4 |
| 5 | 6 |
I guess that something is sorting columns alphabetically, but i don't want that, is there anyway to avoid this?
the input is:
[
{
"hostname": "xxxxx",
"id": 191,
"parent": yyy,
"user": "zzz",
"pass": "fff",
"utype": "admin",
"extra": "ggg",
"stamp": "2022-03-03 19:10:17"
}
]
output:
extra │ hostname │ id │ parent │ pass │ stamp │ user │ utype
since now, thank you for your time.
The following command:
echo "{\"hello\": 24, \"world\": 42}" | jtab | less -r
strips the colour output, it would be nice to have some option to force colour output, like:
echo "{\"hello\": 24, \"world\": 42}" | jq -C | less -r
If i run rustup toolchain list
it outputs `stable-2023-03-28-x86_64-apple-darwin. i'm using macOS 10.15.6
I tried installing with cargo install --git https://github.com/wlezzar/jtab
But when I run it with an example like echo "{\"hello\": 24, \"world\": 42}" | jtab
it outputs Segmentation fault: 11
i tried it in a docker container running Debian on the same machine but it gave the same error Segmentation fault
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.