Skip to main content

Runtime

Functions

getJavaScriptRuntime()

function getJavaScriptRuntime(): 
| undefined
| JavaScriptRuntime;

Defined in: packages/complete-node/src/functions/runtime.ts:8

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

Returns

| undefined | JavaScriptRuntime


isBunRuntime()

function isBunRuntime(): boolean;

Defined in: packages/complete-node/src/functions/runtime.ts:39

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

Returns

boolean

See

https://bun.sh/


isDenoRuntime()

function isDenoRuntime(): boolean;

Defined in: packages/complete-node/src/functions/runtime.ts:48

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

Returns

boolean

See

https://deno.com/


isNodeRuntime()

function isNodeRuntime(): boolean;

Defined in: packages/complete-node/src/functions/runtime.ts:57

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

Returns

boolean

See

https://nodejs.org/