All apps/wasm-bindgen

wasm-bindgen

wasm-bindgen

Generate bindings between WebAssembly and JavaScript.

Runs as wasm-bindgen|macOS, Linux, Windows

Command form

ai-draft · 1 task · 8 fields

Process a compiled .wasm file.

Opens the form; the finished command lands at your prompt, unrun
otty gui wasm-bindgen
Generate JS bindingsExample values, fixed in this page — nothing here reaches a terminal
Basic
Input .wasm file*
file
Output directory
directory
Output name
string
Target
string
Emit TypeScript definitions
--typescript
No .d.ts
--no-typescript
Debug checks
--debug
Keep debug sections
--keep-debug
TasksEach one presets the form for one job
Generate
inputout_dirout_nametargettypescriptno_typescriptdebugkeep_debug
ParametersOnly these flags are editable in the form
Input .wasm file
path · positional 0
Output directory
path
--out-dir
Output name
string
--out-name
Target
string
--targetwebbundlernodejsno-modulesdeno
Emit TypeScript definitions
boolean
--typescript
No .d.ts
boolean
--no-typescript
Debug checks
boolean
--debug
Keep debug sections
boolean
--keep-debug
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed wasm-bindgen against its version. A form that does not match your version is not offered.