wsjq
rb
Our great sponsors
wsjq | rb | |
---|---|---|
2 | 3 | |
13 | 1,488 | |
- | - | |
7.3 | 0.0 | |
about 1 month 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
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
jp - Command line interface to JMESPath - http://jmespath.org
json-logs - A tool to pretty-print JSON logs, like those from zap or logrus.
jid - json incremental digger
howto - Documenting useful things, lest I forget, and sharing is caring
nq - sed "s/jq .key/nq '({key}) => key'/"
gron - Make JSON greppable!
jless - jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
ramda-cli - :ram: A CLI tool for processing data with functional pipelines
mcfly - Fly through your shell history. Great Scott!