Skip to main content

Used to detect the current runtime environment in a running javascript process.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.1.0)

Getting Started

current version

Refer to the following command for your package manager / runtime.

npx jsr add @gm/runtime-detection
yarn dlx jsr add @gm/runtime-detection
pnpm dlx jsr add @gm/runtime-detection

deno add @gm/runtime-detection

bunx jsr add @gm/runtime-detection

Add Package

deno add @gm/runtime-detection

Import symbol

import * as mod from "@gm/runtime-detection";

Add Package

npx jsr add @gm/runtime-detection

Import symbol

import * as mod from "@gm/runtime-detection";

Add Package

yarn dlx jsr add @gm/runtime-detection

Import symbol

import * as mod from "@gm/runtime-detection";

Add Package

pnpm dlx jsr add @gm/runtime-detection

Import symbol

import * as mod from "@gm/runtime-detection";

Add Package

bunx jsr add @gm/runtime-detection

Import symbol

import * as mod from "@gm/runtime-detection";