@@ -347,7 +347,7 @@ function myWriter(output) {
347
347
}
348
348
```
349
349
350
- ## Class: REPLServer
350
+ ## Class: ` REPLServer `
351
351
<!-- YAML
352
352
added: v0.1.91
353
353
-->
@@ -357,7 +357,7 @@ added: v0.1.91
357
357
Instances of ` repl.REPLServer ` are created using the ` repl.start() ` method and
358
358
* should not* be created directly using the JavaScript ` new ` keyword.
359
359
360
- ### Event: 'exit'
360
+ ### Event: ` 'exit' `
361
361
<!-- YAML
362
362
added: v0.7.7
363
363
-->
@@ -374,7 +374,7 @@ replServer.on('exit', () => {
374
374
});
375
375
```
376
376
377
- ### Event: 'reset'
377
+ ### Event: ` 'reset' `
378
378
<!-- YAML
379
379
added: v0.11.0
380
380
-->
@@ -419,7 +419,7 @@ Clearing context...
419
419
>
420
420
```
421
421
422
- ### replServer.defineCommand(keyword, cmd)
422
+ ### ` replServer.defineCommand(keyword, cmd) `
423
423
<!-- YAML
424
424
added: v0.3.0
425
425
-->
@@ -465,7 +465,7 @@ Hello, Node.js User!
465
465
Goodbye!
466
466
```
467
467
468
- ### replServer.displayPrompt(\ [ preserveCursor\] )
468
+ ### ` replServer.displayPrompt([preserveCursor]) `
469
469
<!-- YAML
470
470
added: v0.1.91
471
471
-->
@@ -485,7 +485,7 @@ The `replServer.displayPrompt` method is primarily intended to be called from
485
485
within the action function for commands registered using the
486
486
` replServer.defineCommand() ` method.
487
487
488
- ### replServer.clearBufferedCommand()
488
+ ### ` replServer.clearBufferedCommand() `
489
489
<!-- YAML
490
490
added: v9.0.0
491
491
-->
@@ -495,7 +495,7 @@ buffered but not yet executed. This method is primarily intended to be
495
495
called from within the action function for commands registered using the
496
496
` replServer.defineCommand() ` method.
497
497
498
- ### replServer.parseREPLKeyword(keyword\ [ , rest\] )
498
+ ### ` replServer.parseREPLKeyword(keyword[, rest]) `
499
499
<!-- YAML
500
500
added: v0.8.9
501
501
deprecated: v9.0.0
@@ -510,7 +510,7 @@ deprecated: v9.0.0
510
510
An internal method used to parse and execute ` REPLServer ` keywords.
511
511
Returns ` true ` if ` keyword ` is a valid keyword, otherwise ` false ` .
512
512
513
- ### replServer.setupHistory(historyPath, callback)
513
+ ### ` replServer.setupHistory(historyPath, callback) `
514
514
<!-- YAML
515
515
added: v11.10.0
516
516
-->
@@ -526,7 +526,7 @@ by default. However, this is not the case when creating a REPL
526
526
programmatically. Use this method to initialize a history log file when working
527
527
with REPL instances programmatically.
528
528
529
- ## repl.start(\ [ options\] )
529
+ ## ` repl.start([options]) `
530
530
<!-- YAML
531
531
added: v0.1.91
532
532
changes:
0 commit comments