wat2wasm
WASM/JS clone of wabt's wat2wasm
Last updated 5 months ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install wat2wasm 
SYNC missed versions from official npm registry.

wat2wasm

WASM/JS clone of wabt's wat2wasm

Usage

usage: wat2wasm [options] filename

read a file in the wasm text format, check it for errors, and
convert it to the wasm binary format.

NOTE: This is WASM/JS clone of wabt's wat2wasm command

examples:
# parse and typecheck test.wat and write to test.wasm
$ wat2wasm test.wat

# parse test.wat and write to binary file test.wasm
$ wat2wasm test.wat -o test.wasm

# Read from stdin and write to stdout
$ cat test.wat | wat2wasm - -output=- > test.wasm

options:
-h, --help                                  Print this help message
-f, --features                              Comma separated list of feature flags to enable
-d, --dump-module                           Print a hexdump of the module to stdout
-o, --output=FILE                           output wasm binary file
    --debug-names                           Write debug names to the generated binary file

Features include:

exceptions
mutable_globals
sat_float_to_int
sign_extension
simd
threads
multi_value
tail_call
bulk_memory
reference_types

Install

npm install -g wat2wasm

License

ISC

Current Tags

  • 3.0.0                                ...           latest (5 months ago)

4 Versions

  • 3.0.0                                ...           5 months ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |