3 ms·
I myself am developing a very similar tool [1] with somewhat saner (IMHO!) DSL. In fact this is a side-project from a JS lib I developed long ago [2]. My appro
by xonix 6y ago
I myself am developing a very similar tool [1] with somewhat saner (IMHO!) DSL. In fact this is a side-project from a JS lib I developed long ago [2].
My approach uses very simple ideas and is heavily based on JS internally. This is simple once you understand it [3] (thus saner DSL) and gives the whole power of JS in your hands.
I've also prepared a basic comparison jq vs jsqry based on some examples in article [4].
It's worth noting that currently the CLI tool [1] is written in Java using Graal VM polyglot native image compilation. Thus HUGE executable size of 95 MB (sic!) because it bundles JS engine. I'm considering rewriting this to QuickJS by Fabrice Bellard [5]. This should make it MUCH smaller.
[1] https://github.com/jsqry/jsqry-cli https://github.com/jsqry/jsqry-cli
[2] https://github.com/jsqry/jsqry https://github.com/jsqry/jsqry
[3] https://jsqry.github.io/#filtering https://jsqry.github.io/#filtering
[4] https://gist.github.com/xonixx/d6066e83ec0773df248141440b18e8e4 https://gist.github.com/xonixx/d6066e83ec0773df248141440b18e...
[5] https://bellard.org/quickjs/ https://bellard.org/quickjs/