Need private packages and team management tools?Check out npm Teams »

eswalk

1.0.2 • Public • Published

eswalk

Walks an Esprima parse tree

Example:

var eswalk = require('eswalk');

eswalk(tree, function(node, parent) {
    if (node.type == 'ExpressionStatement' &&
        node.expression.type == 'CallExpression' &&
        node.expression.callee.name == 'define') {
        doSomethingWith(node.expression);
    }
});

Keywords

Install

npm i eswalk

DownloadsWeekly Downloads

2

Version

1.0.2

License

BSD

Last publish

Collaborators

  • avatar