Instances of repl.REPLServer
are created using the repl.start()
method and should not be created directly using
the JavaScript new
keyword.
See also:
Variables
read onlycontext:DynamicAccess<Dynamic>
It is possible to expose a variable to the REPL explicitly by assigning it to the context
object associated
with each REPLServer
.
See also:
Methods
clearBufferedCommand():Void
The replServer.clearBufferedCommand()
method clears any command that has been buffered but not yet executed.
See also:
defineCommand(keyword:String, cmd:REPLServerOptions):Void
defineCommand(keyword:String, cmd:(rest:String) ‑> Void):Void
The replServer.defineCommand()
method is used to add new .
-prefixed commands to the REPL instance.
See also:
displayPrompt(?preserveCursor:Bool):Void
The replServer.displayPrompt()
method readies the REPL instance for input from the user, printing the
configured prompt
to a new line in the output
and resuming the input
to accept new input.
See also:
setupHistory(historyPath:String, callback:(err:Null<Error>, repl:Null<REPLServer>) ‑> Void):Void
Initializes a history log file for the REPL instance.
See also: