🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@webassemblyjs/wasm-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
w

@webassemblyjs/wasm-parser

WebAssembly binary format parser

1.14.1
latest
100

Supply Chain Security

100

Vulnerability

79

Quality

79

Maintenance

100

License

Version published
Weekly downloads
27M
1.61%
Maintainers
1
Weekly downloads
 
Created
Issues
82

What is @webassemblyjs/wasm-parser?

The @webassemblyjs/wasm-parser package is a tool for parsing WebAssembly binaries (.wasm files) into a format that is easier to interact with in JavaScript. It can be used to analyze and manipulate WebAssembly modules without having to execute them.

What are @webassemblyjs/wasm-parser's main functionalities?

Parsing WebAssembly binaries

This feature allows you to parse .wasm files into an abstract syntax tree (AST) that represents the structure and content of the WebAssembly module.

const { decode } = require('@webassemblyjs/wasm-parser');
const fs = require('fs');

const wasmBuffer = fs.readFileSync('module.wasm');
const ast = decode(wasmBuffer);

console.log(ast);

Other packages similar to @webassemblyjs/wasm-parser

FAQs

Package last updated on 06 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts