diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index f6c51217e0eae3..c34f4e04d97923 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -653,6 +653,14 @@ Type: Runtime The `REPLServer.bufferedCommand` property was deprecated in favor of [`REPLServer.clearBufferedCommand()`][]. + +### DEP0075: REPLServer.parseREPLKeyword() + +Type: Runtime + +`REPLServer.parseREPLKeyword()` was removed from userland visibility. + + [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size [`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array [`Buffer.from(buffer)`]: buffer.html#buffer_class_method_buffer_from_buffer diff --git a/doc/api/repl.md b/doc/api/repl.md index 7a9c1f81e56309..4ed95f61116b11 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -385,6 +385,20 @@ buffered but not yet executed. This method is primarily intended to be called from within the action function for commands registered using the `replServer.defineCommand()` method. +### replServer.parseREPLKeyword(keyword, [rest]) + + +* `keyword` {string} the potential keyword to parse and execute +* `rest` {any} any parameters to the keyword command + +> Stability: 0 - Deprecated. + +An internal method used to parse and execute `REPLServer` keywords. +Returns `true` if `keyword` is a valid keyword, otherwise `false`. + ## repl.start([options])