Replace nodes with CSS-like selectors in aster.
Allows to use CSS-style selectors for finding nodes and replacing them with results of corresponding handlers.
aster-squery as a development dependency:
npm install --save-dev aster-squery
Then, add it to your build script:
var aster = ;var squery = ;aster;
can be also written as:
var aster = ;var equery = ;aster;
Callback to be called on each found match. It will get two arguments - matched node object and hashmap of named subpatterns.
estemplate string to be used for generating AST.