isDeno

isDeno

Returns true when runtime is Deno.

Import

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

Signature

function isDeno(): boolean {}

Examples

if (isDeno()) Deno.cwd();
if (!isDeno()) console.log('NodeJS, bun, or browser?');