html-query
html-query copied to clipboard
Feature request: REPL
Instead of using cat page.html | hq '{something: .something}' repeatedly until it works,
it might be better to use something like cat page.html | hq --repl to get a prompt:
> {something: .something}
{
"something": "something"
}
for quick development, this could also help with #33 .
There could also be SQLite style .help or Postgres style \? commands.
Would this make sense for hq?
I love this idea, I’ll have a go at adding it
Rather than bundle a REPL directly into the tool I decided to try and create a WASM playground for hq. It's published here: https://orf.github.io/hq/
I'll be expanding and making it better later on, but let me know what you think