Skip to main content
Module

x/wasm/pkg/wasmer_wasi_js.d.ts>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.d.ts";

Constructors

new
WASI(config: any)

Properties

readonly
fs: MemFS

Methods

free(): void
getStderrBuffer(): Uint8Array

Get the stderr buffer Note: this method flushes the stderr

getStderrString(): string

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

getStdoutBuffer(): Uint8Array

Get the stdout buffer Note: this method flushes the stdout

getStdoutString(): string

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

instantiate(module: any, imports: object): WebAssembly.Instance
setStdinBuffer(buf: Uint8Array): void

Set the stdin buffer

setStdinString(input: string): void

Set the stdin data as a string

start(): number

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