Skip to content

Runtime

Helper functions relating to JavaScript runtimes.

function getJavaScriptRuntime(): JavaScriptRuntime | undefined;

Defined in: functions/runtime.ts:14

Helper function to get the current JavaScript runtime, such as Node.js. Returns undefined if the current runtime cannot be detected.

| JavaScriptRuntime | undefined


function isBunRuntime(): boolean;

Defined in: functions/runtime.ts:45

Helper function to check if the current JavaScript runtime is Bun.

boolean

https://bun.com/


function isDenoRuntime(): boolean;

Defined in: functions/runtime.ts:54

Helper function to check if the current JavaScript runtime is Deno.

boolean

https://deno.com/


function isNodeRuntime(): boolean;

Defined in: functions/runtime.ts:63

Helper function to check if the current JavaScript runtime is Node.js.

boolean

https://nodejs.org/