# process
An implementation of a Node.js-like process global.
# Static members
const arch: stringString representing the CPU architecture for which the binary was compiled. Either
wasm32orwasm64.const platform: stringString representing the operating system platform for which the binary was compiled. Always
wasm.const argv: string[]Array of command line arguments passed to the binary upon instantiation.
const env: Map<string,string>Map of variables in the binary's user environment.
var exitCode: i32Process exit code to use when the process exits gracefully. Defaults to
0.function exit(code?: i32): voidTerminates the process with either the given exit code, or
process.exitCodeif omitted.const stdin: ReadableStream const stdout: WritableStream const stderr: WritableStreamStreams connected to
stdin(fd0),stdout(fd1) andstderr(fd2) respectively.function time(): i64Obtains the system's current time of day, in milliseconds since Unix epoch.
function hrtime(): u64Obtains the system's monotonic high resolution time, in nanoseconds since an arbitrary time in the past.