Skip to main content
ReplOptions.useGlobal - repl - Node documentation
property ReplOptions.useGlobal

Usage in Deno

import { type ReplOptions } from "node:repl";

If true, specifies that the default evaluation function will use the JavaScript global as the context as opposed to creating a new separate context for the REPL instance. The node CLI REPL sets this value to true.

Type

boolean | undefined