Skip to content

Commit 4474e83

Browse files
addaleaxMyles Borins
authored and
Myles Borins
committed
doc: add added: information for repl
Ref: #6578 PR-URL: #7256 Reviewed-By: Julian Duque <[email protected]>
1 parent e6d7bfc commit 4474e83

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/api/repl.md

+15
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,16 @@ and try to print `obj` in REPL, it will invoke the custom `inspect()` function:
153153
```
154154

155155
## Class: REPLServer
156+
<!-- YAML
157+
added: v0.1.91
158+
-->
156159

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

159162
### Event: 'exit'
163+
<!-- YAML
164+
added: v0.7.7
165+
-->
160166

161167
`function () {}`
162168

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

176182

177183
### Event: 'reset'
184+
<!-- YAML
185+
added: v0.11.0
186+
-->
178187

179188
`function (context) {}`
180189

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

199208
### replServer.defineCommand(keyword, cmd)
209+
<!-- YAML
210+
added: v0.3.0
211+
-->
200212

201213
* `keyword` {String}
202214
* `cmd` {Object|Function}
@@ -235,6 +247,9 @@ Hello, Node.js User!
235247
```
236248

237249
### replServer.displayPrompt([preserveCursor])
250+
<!-- YAML
251+
added: v0.1.91
252+
-->
238253

239254
* `preserveCursor` {Boolean}
240255

0 commit comments

Comments
 (0)