Module

x/wasm/wasi.ts>WASI

Monorepo for Javascript WebAssembly packages by Wasmer
Go to Latest
class WASI
import { WASI } from "https://dotland.deno.dev/x/wasm@v1.2.1/wasi.ts";

Constructors

new
WASI(config: WasiConfig)

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_or_instance: 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(instance?: WebAssembly.Instance): number

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

import WASI
import { WASI } from "https://dotland.deno.dev/x/wasm@v1.2.1/wasi.ts";