import { default } from "https://deno.land/x/endofunctor@v0.1.43/src/components/runtime/name.ts";
Identifies the current JavaScript runtime environment. It prioritizes the detection in the following order:
- Bun
- Deno
By default, if neither Bun nor Deno environments are detected, it assumes the Node environment.
This function is useful for applications that need to adapt their behavior based on the runtime environment.
import { runtime } from 'vixeny'
//logging runtime name
console.log(
runtime.name()
)