@luca/runtime-detector@0.1.3
latest
Works with
•JSR Score100%•This package works with Browsers, Deno, Node.js


Published2 years ago (0.1.3)
Detect which runtime you are running in
runtime-detector
A package to detect which runtime you are executing in.
import { detect } from "@luca/runtime-detector"; const runtime = detect(); console.log(runtime); // "node" | "deno" | "browser" | null
Add Package
deno add jsr:@luca/runtime-detector
Import symbol
import { detect } from "@luca/runtime-detector";
Import directly with a jsr specifier
import { detect } from "jsr:@luca/runtime-detector";