Interface WASIOptions

interface WASIOptions {
    args?: string[];
    env?: Record<string, string>;
    preopens?: Record<string, string>;
    version: WASIVersion;
}

Properties

args?: string[]

Command line arguments.

env?: Record<string, string>

Environment variables as key-value pairs.

preopens?: Record<string, string>

Pre-opened directories mapping guest paths to host paths.

version: WASIVersion

Required. The WASI version to use.