variable HISTORY_KEPT

How many lines a session keeps. node:repl keeps thirty; a shell keeps thousands.

import { HISTORY_KEPT } from './history.ts';

HISTORY_KEPT > 30; // true — thirty is fewer than `.history` can be asked for

Type

1000

Usage

import { HISTORY_KEPT } from "lib/commands/repl/history.ts";