Runtime
Helper functions relating to JavaScript runtimes.
Functions
Section titled “Functions”getJavaScriptRuntime()
Section titled “getJavaScriptRuntime()”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.
Returns
Section titled “Returns”|
JavaScriptRuntime
| undefined
isBunRuntime()
Section titled “isBunRuntime()”function isBunRuntime(): boolean;Defined in: functions/runtime.ts:45
Helper function to check if the current JavaScript runtime is Bun.
Returns
Section titled “Returns”boolean
isDenoRuntime()
Section titled “isDenoRuntime()”function isDenoRuntime(): boolean;Defined in: functions/runtime.ts:54
Helper function to check if the current JavaScript runtime is Deno.
Returns
Section titled “Returns”boolean
isNodeRuntime()
Section titled “isNodeRuntime()”function isNodeRuntime(): boolean;Defined in: functions/runtime.ts:63
Helper function to check if the current JavaScript runtime is Node.js.
Returns
Section titled “Returns”boolean
