Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WASIOptions

Index

Properties

Optional args

args: string[]

An array of strings that the WebAssembly application will see as command line arguments. The first argument is the virtual path to the WASI command itself.

Optional env

env: object

An object similar to process.env that the WebAssembly application will see as its environment.

Optional preopens

preopens: Dict<string>

This object represents the WebAssembly application's sandbox directory structure. The string keys of preopens are treated as directories within the sandbox. The corresponding values in preopens are the real paths to those directories on the host machine.

Optional returnOnExit

returnOnExit: boolean

By default, WASI applications terminate the Node.js process via the __wasi_proc_exit() function. Setting this option to true causes wasi.start() to return the exit code rather than terminate the process.

default

false

Optional stderr

stderr: number

The file descriptor used as standard error in the WebAssembly application.

default

2

Optional stdin

stdin: number

The file descriptor used as standard input in the WebAssembly application.

default

0

Optional stdout

stdout: number

The file descriptor used as standard output in the WebAssembly application.

default

1

Generated using TypeDoc