Skip to main content

Built and signed on GitHub Actions

This tells us the run time environment.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
76%
Published
a month ago (0.1.2)

detect

This detects your runtime environment:

import {detect} from "@dolearning/detect-runtime"
const environment = detect()
Built and signed on
GitHub Actions
View transparency log

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";