| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
An implementation of a Node.js-like process global.
const arch: stringString representing the CPU architecture for which the binary was compiled. Either wasm32 or wasm64.
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.exitCode if omitted.
const stdin: ReadableStream
const stdout: WritableStream
const stderr: WritableStreamStreams connected to stdin (fd 0), stdout (fd 1) and stderr (fd 2) 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.
| Back | FazBrowse Home | New Git URL |