Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/runtime.ts>default

A JavaScript extension package for building strong and modern applications.
Latest
function default
import { default } from "https://deno.land/x/ayonli_jsext@v0.9.72/runtime.ts";

Returns the information of the runtime environment in which the program is running.

Examples

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
// }

// ...