Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.1/pkg/wasmer_wasi_js.js";

Constructors

new
WASI(config)

Properties

readonly
fs

Methods

getImports(module)

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_or_instance, imports)

Set the stdin buffer

Set the stdin data as a string

start(instance)

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