Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 656 Bytes

docs-using-invoking.md

File metadata and controls

14 lines (10 loc) · 656 Bytes

Invoking modules programatically

Javy-generated modules are by design WASI only and follow the command pattern.

Any input must be passed via stdin and any output will be placed in stdout. This is especially important when invoking Javy modules from a custom embedding.

In a runtime like Wasmtime, wasmtime-wasi can be used to set the input and retrieve the output.

To embed Javy in a Node.js application see this example.