Skip to main content
ReplOptions.replMode - node__repl.d.ts - Node documentation
property ReplOptions.replMode

Usage in Deno

```typescript import { type ReplOptions } from "node:node__repl.d.ts"; ```
A flag that specifies whether the default evaluator executes all JavaScript commands in strict mode or default (sloppy) mode. Accepted values are: - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with `'use strict'`.

Type