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

x/ayonli_jsext/runtime.ts>isREPL

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

Detects if the program is running in a REPL environment.

NOTE: This function currently returns true when in:

  • Node.js REPL
  • Deno REPL
  • Bun REPL
  • Google Chrome Console

Returns

boolean