rb
wsjq
rb | wsjq | |
---|---|---|
3 | 2 | |
1,488 | 13 | |
- | - | |
0.0 | 6.8 | |
about 1 year ago | about 2 months ago | |
Ruby | jq | |
MIT License | Mozilla Public License 2.0 |
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.
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
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.
[0]: https://github.com/andrewarchi/wsjq
What are some alternatives?
zed - A novel data lake based on super-structured data
kubectl-jq - Kubectl plugin that works like "kubectl get" but runs everything through a JQ program you provide
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!
q - q - Run SQL directly on delimited files and multi-file sqlite databases
mcfly - Fly through your shell history. Great Scott!
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]