wast-traverse

    0.7.2 • Public • Published

    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.

    Keywords

    Install

    npm i wast-traverse

    DownloadsWeekly Downloads

    46

    Version

    0.7.2

    License

    MIT

    Last publish

    Collaborators

    • drom