Skip to content

Function: isBunRuntime()

Makaio Framework


Makaio Framework / utils / isBunRuntime

isBunRuntime(): boolean

Defined in: ../../../packages/utils/src/runtime.ts:17

Returns true when the current process is running under the Bun runtime.

Detection is based on the presence of the Bun property on globalThis, which Bun always exposes. Uses a bracket-access check to avoid a TypeScript error on environments where the Bun global is not declared.

boolean

Whether the current runtime is Bun.