tsquery icon indicating copy to clipboard operation
tsquery copied to clipboard

Export to json as es6query

Open mich4s opened this issue 7 years ago • 1 comments

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 ;/

mich4s avatar Feb 08 '19 09:02 mich4s

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.

phenomnomnominal avatar Feb 09 '19 20:02 phenomnomnominal