Unverified Commit 0aa74443 authored by Lance Ball's avatar Lance Ball
Browse files

repl: add repl.setupHistory for programmatic repl

Adds a `repl.setupHistory()` instance method so that
programmatic REPLs can also write history to a file.

This change also refactors all of the history file
management to `lib/internal/repl/history.js`, cleaning
up and simplifying `lib/internal/repl.js`.

PR-URL: https://github.com/nodejs/node/pull/25895


Reviewed-By: default avatarDaniel Bevenius <daniel.bevenius@gmail.com>
parent 902c71a9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment