Skip to main content
Module

x/wasm/pkg/wasmer_wasi_js.js>WASI

Monorepo for Javascript WebAssembly packages by Wasmer
Go to Latest
class WASI
import { WASI } from "https://deno.land/x/wasm@v1.0.2/pkg/wasmer_wasi_js.js";

Constructors

new
WASI(config)

Properties

readonly
fs

Methods

Get the stderr buffer Note: this method flushes the stderr

Get the stderr data as a string Note: this method flushes the stderr

Get the stdout buffer Note: this method flushes the stdout

Get the stdout data as a string Note: this method flushes the stdout

instantiate(module, imports)

Set the stdin buffer

Set the stdin data as a string

Start the WASI Instance, it returns the status code when calling the start function