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

x/ayonli_jsext/esm/runtime.js

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/runtime.js";

Variables

A unified symbol that can be used to customize the inspection behavior of an object, currently supports Node.js, Bun and Deno.

Functions

Adds a listener function to be called when the program receives a SIGINT (Ctrl+C) signal, or a shutdown message sent by the parent process (a PM2 pattern for Windows), so that the program can perform a graceful shutdown.

Adds a listener function to be called when an unhandled promise rejection occurs in the program, this function calls addEventListener("unhandledrejection") or process.on("unhandledRejection") under the hood.

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

Detects if the program is running in a REPL environment.

Returns a string identifying the operating system platform in which the program is running.

Make the timer block the event loop from finishing again after it has been unrefed.

Make the timer not block the event loop from finishing.