ft_transcendence/pong/node_modules/@webassemblyjs/wasm-parser
2023-05-02 19:15:50 +02:00
..
esm new sadjigui 2023-05-02 19:15:50 +02:00
lib new sadjigui 2023-05-02 19:15:50 +02:00
LICENSE new sadjigui 2023-05-02 19:15:50 +02:00
package.json new sadjigui 2023-05-02 19:15:50 +02:00
README.md new sadjigui 2023-05-02 19:15:50 +02:00

@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)