parse5-traverse
Simple but flexible AST traversal with pre and post visitors. The main code of this project comes from ast-traverse. As ast-traverse
is not compatible with parse5, parse5-traverse
got created.
Getting started
$ npm install --save parse5-traverse
Usage
const parse5 = ;const traverse = ; const documentFragment = parse5; // print AST node types, pre-order (node first, then its children);