Skip to content

About

WebAssembly AST traversal

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

WebAssembly AST traversal tool

NPM version Travis appVeyor

WebAssembly (AST) traversal tool. Inspired by estraverse

Use

Node.js

npm i wast-traverse --save
var traverse = require('wast-traverse');
var count = 0;
traverse(tree, {
    enter: function (node, parent) {
        if (node.kind === 'func') {
          count++;
        }
    },
    leave: function (node, parent) {
      ...
    }
});

Testing

npm test

License

MIT LICENSE.

About

WebAssembly AST traversal

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages