cheshire
rb
cheshire | rb | |
---|---|---|
2 | 3 | |
1,469 | 1,488 | |
- | - | |
5.6 | 0.0 | |
30 days ago | about 1 year ago | |
Clojure | Ruby | |
MIT 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.
cheshire
-
Zq: An Easier (and Faster) Alternative to Jq
For me, transforming JSON on the command line was a pain, another DSL to learn. Now, I can just use Babashka/ Clojure + one or two functions from Cheshire https://github.com/dakrone/cheshire where I need to. If I needed a standalone tool, I would perhaps reach for https://github.com/borkdude/jet by the same author, Michiel Borkent, as Babashka or use jq that everybody else would find more familiar.
-
A Practical Introduction to jq (and more)
[2]: https://github.com/dakrone/cheshire
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?
babashka - A Clojure babushka for the grey areas of Bash (native fast-starting Clojure scripting environment) [Moved to: https://github.com/babashka/babashka]
zed - A novel data lake based on super-structured data
wsjq - Whitespace interpreter and debugger in jq
brackit - Query processor with proven optimizations, ready to use for your JSON store to query semi-structured data with JSONiq. Can also be used as an ad-hoc in-memory query processor.
jp - Command line interface to JMESPath - http://jmespath.org
grop - helper script for the `gron | grep | gron -u` workflow
jid - json incremental digger
nq - sed "s/jq .key/nq '({key}) => key'/"
yq - yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
q - q - Run SQL directly on delimited files and multi-file sqlite databases