| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -327,7 +327,7 @@ function myWriter(output) { | |||
| 327 | 327 | } | |
| 328 | 328 | ``` | |
| 329 | 329 | ||
| 330 | - ## Class: REPLServer | ||
| 330 | + ## Class: `REPLServer` | ||
| 331 | 331 | <!-- YAML | |
| 332 | 332 | added: v0.1.91 | |
| 333 | 333 | --> | |
@@ -337,7 +337,7 @@ added: v0.1.91 | |||
| 337 | 337 | Instances of `repl.REPLServer` are created using the `repl.start()` method and | |
| 338 | 338 | *should not* be created directly using the JavaScript `new` keyword. | |
| 339 | 339 | ||
| 340 | - ### Event: 'exit' | ||
| 340 | + ### Event: `'exit'` | ||
| 341 | 341 | <!-- YAML | |
| 342 | 342 | added: v0.7.7 | |
| 343 | 343 | --> | |
@@ -354,7 +354,7 @@ replServer.on('exit', () => { | |||
| 354 | 354 | }); | |
| 355 | 355 | ``` | |
| 356 | 356 | ||
| 357 | - ### Event: 'reset' | ||
| 357 | + ### Event: `'reset'` | ||
| 358 | 358 | <!-- YAML | |
| 359 | 359 | added: v0.11.0 | |
| 360 | 360 | --> | |
@@ -399,7 +399,7 @@ Clearing context... | |||
| 399 | 399 | > | |
| 400 | 400 | ``` | |
| 401 | 401 | ||
| 402 | - ### replServer.defineCommand(keyword, cmd) | ||
| 402 | + ### `replServer.defineCommand(keyword, cmd)` | ||
| 403 | 403 | <!-- YAML | |
| 404 | 404 | added: v0.3.0 | |
| 405 | 405 | --> | |
@@ -445,7 +445,7 @@ Hello, Node.js User! | |||
| 445 | 445 | Goodbye! | |
| 446 | 446 | ``` | |
| 447 | 447 | ||
| 448 | - ### replServer.displayPrompt(\[preserveCursor\]) | ||
| 448 | + ### `replServer.displayPrompt([preserveCursor])` | ||
| 449 | 449 | <!-- YAML | |
| 450 | 450 | added: v0.1.91 | |
| 451 | 451 | --> | |
@@ -465,7 +465,7 @@ The `replServer.displayPrompt` method is primarily intended to be called from | |||
| 465 | 465 | within the action function for commands registered using the | |
| 466 | 466 | `replServer.defineCommand()` method. | |
| 467 | 467 | ||
| 468 | - ### replServer.clearBufferedCommand() | ||
| 468 | + ### `replServer.clearBufferedCommand()` | ||
| 469 | 469 | <!-- YAML | |
| 470 | 470 | added: v9.0.0 | |
| 471 | 471 | --> | |
@@ -475,7 +475,7 @@ buffered but not yet executed. This method is primarily intended to be | |||
| 475 | 475 | called from within the action function for commands registered using the | |
| 476 | 476 | `replServer.defineCommand()` method. | |
| 477 | 477 | ||
| 478 | - ### replServer.parseREPLKeyword(keyword\[, rest\]) | ||
| 478 | + ### `replServer.parseREPLKeyword(keyword[, rest])` | ||
| 479 | 479 | <!-- YAML | |
| 480 | 480 | added: v0.8.9 | |
| 481 | 481 | deprecated: v9.0.0 | |
@@ -490,7 +490,7 @@ deprecated: v9.0.0 | |||
| 490 | 490 | An internal method used to parse and execute `REPLServer` keywords. | |
| 491 | 491 | Returns `true` if `keyword` is a valid keyword, otherwise `false`. | |
| 492 | 492 | ||
| 493 | - ### replServer.setupHistory(historyPath, callback) | ||
| 493 | + ### `replServer.setupHistory(historyPath, callback)` | ||
| 494 | 494 | <!-- YAML | |
| 495 | 495 | added: v11.10.0 | |
| 496 | 496 | --> | |
@@ -506,7 +506,7 @@ by default. However, this is not the case when creating a REPL | |||
| 506 | 506 | programmatically. Use this method to initialize a history log file when working | |
| 507 | 507 | with REPL instances programmatically. | |
| 508 | 508 | ||
| 509 | - ## repl.start(\[options\]) | ||
| 509 | + ## `repl.start([options])` | ||
| 510 | 510 | <!-- YAML | |
| 511 | 511 | added: v0.1.91 | |
| 512 | 512 | changes: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments