From 4474e83b781ce9c18f4a9a937f26a576ae8ee1cf Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 10 Jun 2016 09:12:55 +0200 Subject: [PATCH] doc: add `added:` information for repl Ref: https://github.com/nodejs/node/issues/6578 PR-URL: https://github.com/nodejs/node/pull/7256 Reviewed-By: Julian Duque --- doc/api/repl.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/api/repl.md b/doc/api/repl.md index a6d78b61d446b8..b25dd890f46781 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -153,10 +153,16 @@ and try to print `obj` in REPL, it will invoke the custom `inspect()` function: ``` ## Class: REPLServer + This inherits from [Readline Interface][] with the following events: ### Event: 'exit' + `function () {}` @@ -175,6 +181,9 @@ replServer.on('exit', () => { ### Event: 'reset' + `function (context) {}` @@ -197,6 +206,9 @@ replServer.on('reset', (context) => { ``` ### replServer.defineCommand(keyword, cmd) + * `keyword` {String} * `cmd` {Object|Function} @@ -235,6 +247,9 @@ Hello, Node.js User! ``` ### replServer.displayPrompt([preserveCursor]) + * `preserveCursor` {Boolean}