Skip to content

Commit

Permalink
doc: add added: information for repl
Browse files Browse the repository at this point in the history
Ref: #6578
PR-URL: #7256
Reviewed-By: Julian Duque <[email protected]>
  • Loading branch information
addaleax authored and Myles Borins committed Jul 14, 2016
1 parent e6d7bfc commit 4474e83
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,16 @@ and try to print `obj` in REPL, it will invoke the custom `inspect()` function:
```

## Class: REPLServer
<!-- YAML
added: v0.1.91
-->

This inherits from [Readline Interface][] with the following events:

### Event: 'exit'
<!-- YAML
added: v0.7.7
-->

`function () {}`

Expand All @@ -175,6 +181,9 @@ replServer.on('exit', () => {


### Event: 'reset'
<!-- YAML
added: v0.11.0
-->

`function (context) {}`

Expand All @@ -197,6 +206,9 @@ replServer.on('reset', (context) => {
```

### replServer.defineCommand(keyword, cmd)
<!-- YAML
added: v0.3.0
-->

* `keyword` {String}
* `cmd` {Object|Function}
Expand Down Expand Up @@ -235,6 +247,9 @@ Hello, Node.js User!
```

### replServer.displayPrompt([preserveCursor])
<!-- YAML
added: v0.1.91
-->

* `preserveCursor` {Boolean}

Expand Down

0 comments on commit 4474e83

Please sign in to comment.