transformer-query

This provides more intuitive way for interacting with ASTs. Thanks for ttypescript, this made it easy to develop this library.

How to use

ipqfgygfszmz6mbm22to

makeTransform() returns ttypescript transform function. So, we can use like that.

Query should be tagged string literal. And it accepts imported variable or interal wildcard.

And call chain, which appears next of query, can return valid typescript code or ts.Node interface.

That’s it! after this, just register it with the method described on ttypescript.

GitHub

View Github