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

x/ayonli_jsext/runtime.ts>RuntimeInfo

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

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

Properties

identity: WellknownRuntime | "unknown"

A string identifying the runtime.

optional
version: string | undefined

The version of the runtime. This property may be undefined if the runtime doesn't provide version information, or when the runtime is unknown.

fsSupport: boolean

Whether the runtime has file system support. When true, the program can use the @ayonli/jsext/fs module to access the file system.

tsSupport: boolean

Whether the runtime has TypeScript support. When true, the program can import TypeScript files directly.

optional
worker:
| "dedicated"
| "shared"
| "service"
| undefined

If the program is running in a worker thread, this property indicates the type of the worker.