htc b500366a42 首次提交 | il y a 3 mois | |
---|---|---|
.. | ||
esm | il y a 3 mois | |
lib | il y a 3 mois | |
LICENSE | il y a 3 mois | |
README.md | il y a 3 mois | |
package.json | il y a 3 mois |
WebAssembly binary format parser
yarn add @webassemblyjs/wasm-parser
import { decode } from "@webassemblyjs/wasm-parser";
import { readFileSync } from "fs";
const binary = readFileSync("/path/to/module.wasm");
const decoderOpts = {};
const ast = decode(binary, decoderOpts);
dump
: print dump information while decoding (default false
)ignoreCodeSection
: ignore the code section (default false
)ignoreDataSection
: ignore the data section (default false
)