olov

olov/ast-traverse

simple but flexible AST traversal with pre and post visitors

JavaScript
36
6
MIT License

ast-traverse.js is a simple yet flexible library for traversing Abstract Syntax Trees (ASTs) with pre and post-order visitors, supporting both Node.js and browser environments. It allows users to define custom traversal logic, skip specific properties, or abort traversal early, making it ideal for developers working with ASTs generated by parsers like Esprima. This tool is particularly useful for code analysis, transformation, or manipulation tasks.

Total donated
Undistributed
Share with your subscribers: