UNPKG

probot

Version:

A framework for building GitHub Apps to automate and improve your workflow

17 lines 561 B
import { detectRuntime } from "./detect-runtime.js"; export function getRuntimeVersion(globalThis) { const runtime = detectRuntime(globalThis); switch (runtime) { case "node": return globalThis.process.versions.node; case "deno": return globalThis.process.versions.deno; case "bun": return globalThis.process.versions.bun; case "browser": return "N/A"; default: throw new Error("Unknown runtime"); } } //# sourceMappingURL=get-runtime-version.js.map