import { default } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/runtime.js";
Returns the information of the runtime environment in which the program is running.
Examples
Example 1
Example 1
import runtime from "@ayonli/jsext/runtime";
console.log(runtime());
// In Node.js
// {
// identity: "node",
// version: "22.0.0",
// fsSupport: true,
// tsSupport: false,
// worker: undefined
// }
// In Deno
// {
// identity: "deno",
// version: "1.42.0",
// fsSupport: true,
// tsSupport: true,
// worker: undefined
// }
// In the browser (Chrome)
// {
// identity: "chrome",
// version: "125.0.0.0",
// fsSupport: true,
// tsSupport: false,
// worker: undefined
// }
// ...