Skip to main content
ReadLineOptions.removeHistoryDuplicates - readline - Node documentation
property ReadLineOptions.removeHistoryDuplicates

Usage in Deno

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

If true, when a new input line added to the history list duplicates an older one, this removes the older line from the list.

Type

boolean | undefined