wasm-tools
A collection of useful tools for working with WASM/WAT in JavaScript
Last updated 4 years ago by kasperisager .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install wasm-tools 
SYNC missed versions from official npm registry.

WASM Tools

WASM Tools is a collection of useful tools for working with WASM and its accompanying text format, WAT, in JavaScript. The tools are based on esbuild and wabt.

Installation

npm install wasm-tools

Tools

wasm-to-js (alias wat-to-js)

Convert a WASM or WAT module to a JavaScript module.

Usage

Usage: wasm-to-js [options] <input>

Arguments:
  input                      the WASM or WAT module to convert to a JavaScript
                             module

Options:
  -V, --version              output the version number
  -f, --format <format>      the module format to use (choices: "esm", "cjs",
                             "iife", default: "esm")
  -p, --platform <platform>  the platform to bundle for (choices: "browser",
                             "node", "neutral", default: "browser")
  -s, --sync                 synchronously load the WASM in the resulting
                             module
  -m, --minify               minify the the resulting module
  -h, --help                 display help for command

wasm-to-wat

Convert a WASM module to a WAT module.

Usage

Usage: wasm-to-wat [options] <input>

Arguments:
  input          the WASM module to convert to a WAT module

Options:
  -V, --version  output the version number
  -h, --help     display help for command

wat-to-wasm

Convert a WAT module to a WASM module.

Usage

Usage: wat-to-wasm [options] <input>

Arguments:
  input          the WAT module to convert to WASM module

Options:
  -V, --version  output the version number
  -h, --help     display help for command

Current Tags

  • 0.2.1                                ...           latest (4 years ago)

6 Versions

  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Downloads
Total 10
Today 0
This Week 0
This Month 10
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE