1. @webassemblyjs/wasm-parser
WebAssembly binary format parser
@webassemblyjs/wasm-parser
Package: @webassemblyjs/wasm-parser
Created by: xtuc
Last modified: Wed, 13 Mar 2024 10:19:17 GMT
Version: 1.12.1
License: MIT
Downloads: 98,578,973
Repository: https://github.com/xtuc/webassemblyjs

Install

npm install @webassemblyjs/wasm-parser
yarn add @webassemblyjs/wasm-parser

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code