tsquery
tsquery copied to clipboard
Export to json as es6query
No exactly issue, but didn't found any alternative way to ask this. Does this lib provide a way to export structure to json as in https://estools.github.io/esquery/? Cannot find anything and this is the only thing that I need to be honest ;/
Not totally sure what but you’re talking about - do you mean the representation of the selector? Or the JSON version of the actual nodes?
If it’s the latter, then it’s a bit trickier with the TypeScript API because the nodes aren’t just data, they have methods etc. but you can still just JSON stringify the result from the query.