H5-ThreeDoorder/node_modules/@webassemblyjs/wasm-parser
whitechiina b1ff9a68e4 updata 2025-09-12 17:36:21 +08:00
..
esm updata 2025-09-12 17:36:21 +08:00
lib updata 2025-09-12 17:36:21 +08:00
LICENSE updata 2025-09-12 17:36:21 +08:00
README.md updata 2025-09-12 17:36:21 +08:00
package.json updata 2025-09-12 17:36:21 +08:00

README.md

@webassemblyjs/wasm-parser

WebAssembly binary format parser

Installation

yarn add @webassemblyjs/wasm-parser

Usage

import { decode } from "@webassemblyjs/wasm-parser";
import { readFileSync } from "fs";

const binary = readFileSync("/path/to/module.wasm");

const decoderOpts = {};
const ast = decode(binary, decoderOpts);

Decoder options

  • dump: print dump information while decoding (default false)
  • ignoreCodeSection: ignore the code section (default false)
  • ignoreDataSection: ignore the data section (default false)