summaryrefslogtreecommitdiff
path: root/doc/api/repl.md
diff options
context:
space:
mode:
authorLance Ball <lball@redhat.com>2017-07-13 14:17:33 -0400
committerLance Ball <lball@redhat.com>2017-08-02 14:39:06 -0400
commit766506a2e947b297926e046051841eae78705b92 (patch)
treeaa63eb3c2131ea10d6e26aa99b5828b0c6fdd9c7 /doc/api/repl.md
parente506bcd899b3530ec69bdc00d5bac469b5753081 (diff)
downloadandroid-node-v8-766506a2e947b297926e046051841eae78705b92.tar.gz
android-node-v8-766506a2e947b297926e046051841eae78705b92.tar.bz2
android-node-v8-766506a2e947b297926e046051841eae78705b92.zip
repl: deprecate REPLServer.parseREPLKeyword
This method does not need to be visible to user code. It has been undocumented since it was introduced which was perhaps v0.8.9. The motivation for this change is that the method is simply an implementation detail of the REPLServer behavior, and does not need to be exposed to user code. This change adds documentation of the method with a deprecation warning, and a test that the method is actually documented. PR-RUL: https://github.com/nodejs/node/pull/14223 Refs: https://github.com/nodejs/node/issues/7619 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/repl.md')
-rw-r--r--doc/api/repl.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/api/repl.md b/doc/api/repl.md
index 7a9c1f81e5..4ed95f6111 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])
+<!-- YAML
+added: v0.8.9
+deprecated: REPLACEME
+-->
+
+* `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])
<!-- YAML
added: v0.1.91