Socket
Socket
Sign inDemoInstall

@webassemblyjs/wast-printer

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webassemblyjs/wast-printer

WebAssembly text format printer


Version published
Weekly downloads
19M
decreased by-15.27%
Maintainers
1
Weekly downloads
 
Created

What is @webassemblyjs/wast-printer?

The @webassemblyjs/wast-printer package is a tool for converting WebAssembly binary format (Wasm) into WebAssembly Text format (WAT), also known as WAST. This is particularly useful for debugging, optimization, and learning purposes, as WAT is a human-readable representation of WebAssembly code.

What are @webassemblyjs/wast-printer's main functionalities?

Printing Wasm to WAT

This feature allows you to parse a WAST string to create an abstract syntax tree (AST) and then print that AST back into a WAST string. It's useful for generating human-readable WAT/WAST from WebAssembly binaries or ASTs.

"const { parse } = require('@webassemblyjs/wast-parser');\nconst { print } = require('@webassemblyjs/wast-printer');\nconst wast = '(module)';\nconst ast = parse(wast);\nconst output = print(ast);\nconsole.log(output);"

Other packages similar to @webassemblyjs/wast-printer

Keywords

FAQs

Package last updated on 09 May 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc