File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,16 @@ and try to print `obj` in REPL, it will invoke the custom `inspect()` function:
153
153
```
154
154
155
155
## Class: REPLServer
156
+ <!-- YAML
157
+ added: v0.1.91
158
+ -->
156
159
157
160
This inherits from [ Readline Interface] [ ] with the following events:
158
161
159
162
### Event: 'exit'
163
+ <!-- YAML
164
+ added: v0.7.7
165
+ -->
160
166
161
167
` function () {} `
162
168
@@ -175,6 +181,9 @@ replServer.on('exit', () => {
175
181
176
182
177
183
### Event: 'reset'
184
+ <!-- YAML
185
+ added: v0.11.0
186
+ -->
178
187
179
188
` function (context) {} `
180
189
@@ -197,6 +206,9 @@ replServer.on('reset', (context) => {
197
206
```
198
207
199
208
### replServer.defineCommand(keyword, cmd)
209
+ <!-- YAML
210
+ added: v0.3.0
211
+ -->
200
212
201
213
* ` keyword ` {String}
202
214
* ` cmd ` {Object|Function}
@@ -235,6 +247,9 @@ Hello, Node.js User!
235
247
```
236
248
237
249
### replServer.displayPrompt([ preserveCursor] )
250
+ <!-- YAML
251
+ added: v0.1.91
252
+ -->
238
253
239
254
* ` preserveCursor ` {Boolean}
240
255
You can’t perform that action at this time.
0 commit comments