Skip to main content
Home

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

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year 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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gm/runtime-detection

Import symbol

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

Import directly with a jsr specifier

import * as runtime_detection from "jsr:@gm/runtime-detection";

Add Package

pnpm i jsr:@gm/runtime-detection
or (using pnpm 10.8 or older)
pnpm dlx jsr add @gm/runtime-detection

Import symbol

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

Add Package

yarn add jsr:@gm/runtime-detection
or (using Yarn 4.8 or older)
yarn dlx jsr add @gm/runtime-detection

Import symbol

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

Add Package

npx jsr add @gm/runtime-detection

Import symbol

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

Add Package

bunx jsr add @gm/runtime-detection

Import symbol

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