Files
node/doc/api
Danny Nemer 8bd6ab7870 readline: add option to stop duplicates in history
Adds `options.deDupeHistory` for `readline.createInterface(options)`. If
`options.deDupeHistory` is `true`, when a new input line being added to
the history list duplicates an older one, removes the older line from
the list. Defaults to `false`.

Many users would appreciate this option, as it is a common setting in
shells. This option certainly should not be default behavior, as it
would be problematic in applications such as the `repl`, which inherits
from the readline `Interface`.

Extends documentation to reflect this API addition.

Adds tests for when `options.deDupeHistory` is truthy, and when
`options.deDupeHistory` is falsey.

PR-URL: https://github.com/nodejs/node/pull/2982
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2017-05-17 21:32:04 -04:00
..
2016-04-26 12:16:28 -07:00
2017-04-18 20:01:56 -04:00
2017-04-18 20:02:11 -04:00
2016-04-26 12:16:28 -07:00
2017-04-18 20:02:26 -04:00
2017-04-18 20:01:54 -04:00
2017-05-17 21:31:55 -04:00
2017-04-18 20:01:58 -04:00
2017-01-31 17:07:44 -05:00
2016-12-13 16:10:09 -05:00