1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# @webassemblyjs/wasm-text-gen
> Emit documentation/code for your WASM binary
## Installation
```sh
yarn add -g @webassemblyjs/wasm-text-gen
```
## Usage
```sh
wasmgen path/to/binary.wasm
```
### Printers
Text (default):
```sh
wasmgen -o text path/to/binary.wasm
```
Markdown:
```sh
wasmgen -o md path/to/binary.wasm
// or
wasmgen -o markdown path/to/binary.wasm
```
JavaScript:
```sh
wasmgen -o js --url http://xtuc.fr/foo.wasm path/to/binary.wasm
// or
wasmgen -o javascript --url http://xtuc.fr/foo.wasm path/to/binary.wasm
```
|