This detects your runtime environment:
import {detect} from "@dolearning/detect-runtime" const environment = detect()
Add Package
deno add jsr:@dolearning/detect-runtime
Import symbol
import * as detect_runtime from "@dolearning/detect-runtime";
---- OR ----
Import directly with a jsr specifier
import * as detect_runtime from "jsr:@dolearning/detect-runtime";
Add Package
npx jsr add @dolearning/detect-runtime
Import symbol
import * as detect_runtime from "@dolearning/detect-runtime";
Add Package
yarn dlx jsr add @dolearning/detect-runtime
Import symbol
import * as detect_runtime from "@dolearning/detect-runtime";
Add Package
pnpm dlx jsr add @dolearning/detect-runtime
Import symbol
import * as detect_runtime from "@dolearning/detect-runtime";