[ readonly ] runtime

Class: SwingUI.

Description:

Gets the JavaScript runtime name ("node", "bun", "deno", or "unknown"). Useful when building an application compatible with multiple JavaScript runtimes.

Type: string

Examples:

Getting current JavaScript runtime:

console.log(ui.runtime);
// prints "node", or what ever your runtime is.