setupHistory
fun setupHistory(historyPath: String, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, repl: Unit) -> Unit)(source)
Initializes a history log file for the REPL instance. When executing the Node.js binary and using the command-line REPL, a history file is initialized by default. However, this is not the case when creating a REPL programmatically. Use this method to initialize a history log file when working with REPL instances programmatically.
Since
v11.10.0
Parameters
historyPath
the path to the history file
callback
called when history writes are ready or upon error
fun setupHistory(historyConfig: REPLServerSetupHistoryOptions = definedExternally, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, repl: Unit) -> Unit = definedExternally)(source)