wsjq
rb
Our great sponsors
wsjq | rb | |
---|---|---|
2 | 3 | |
13 | 1,488 | |
- | - | |
6.8 | 0.0 | |
27 days ago | about 1 year ago | |
jq | Ruby | |
Mozilla Public License 2.0 | 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.
wsjq
- Zq: An Easier (and Faster) Alternative to Jq
-
An Introduction to JQ
jq is unsurprisingly Turing complete, so I wrote a Whitespace interpreter[0] in jq. It is able to handle real-time I/O by requesting lines on-demand from stdin, which is the main input source, with `input` and outputting strings in a stream.
With a relatively large jq program like that, it is critical that the main recursive loop run efficiently, so it's annoying that there's no way to detect whether tail call optimization was applied, other than benchmarking. It would also be nice if object values were lazily evaluated so that it would be possible to create ad hoc switches.
rb
-
Zq: An Easier (and Faster) Alternative to Jq
I like using `jq` to create line-delimited JSON and then using a language I know well (Node) to process it after that point. I find `jq '.[] | select(.location=="Stockholm")'` less readable than something like `nq --filter '({location}) => location === "Stockholm"'` because I'm much more used to Node syntax.
- https://github.com/thisredone/rb is a widely used ruby version of this idea
- https://github.com/KelWill/nq#readme is something similar that I wrote for my own use
- rb: Turns Ruby into a versatile command line utility
-
My latest tutorial, on using Ruby from the command line.
You might be interested by this little script https://github.com/thisredone/rb
What are some alternatives?
kubectl-jq - Kubectl plugin that works like "kubectl get" but runs everything through a JQ program you provide
zed - A novel data lake based on super-structured data
json-logs - A tool to pretty-print JSON logs, like those from zap or logrus.
jp - Command line interface to JMESPath - http://jmespath.org
howto - Documenting useful things, lest I forget, and sharing is caring
jid - json incremental digger
gron - Make JSON greppable!
nq - sed "s/jq .key/nq '({key}) => key'/"
q - q - Run SQL directly on delimited files and multi-file sqlite databases
feedback - Public feedback discussions for: GitHub for Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more! [Moved to: https://github.com/github-community/community]
mcfly - Fly through your shell history. Great Scott!