isBun

Bun

Returns true when runtime is Bun

Import

import { isBun } from '@fullstacksjs/toolbox';

Signature

function isBun(): boolean {}

Examples

if (isBun()) console.log(Bun.version);
if (!isBun()) console.log('Node, Deno, or browser?');