ReadLineOptions.history - Node documentation
property ReadLineOptions.history

Usage in Deno

import { type ReadLineOptions } from "node:readline";

Initial list of history lines. This option makes sense only if terminal is set to true by the user or by an internal output check, otherwise the history caching mechanism is not initialized at all.

Type

string[] | undefined