@@ -536,14 +536,14 @@ line prompts are included in the calculations.
536
536
537
537
## Promises API
538
538
<!-- YAML
539
- added: REPLACEME
539
+ added: v17.0.0
540
540
-->
541
541
542
542
> Stability: 1 - Experimental
543
543
544
544
### Class: ` readlinePromises.Interface `
545
545
<!-- YAML
546
- added: REPLACEME
546
+ added: v17.0.0
547
547
-->
548
548
549
549
* Extends: {readline.InterfaceConstructor}
@@ -556,7 +556,7 @@ and is read from, the `input` stream.
556
556
557
557
#### ` rl.question(query[, options]) `
558
558
<!-- YAML
559
- added: REPLACEME
559
+ added: v17.0.0
560
560
-->
561
561
562
562
* ` query ` {string} A statement or query to write to ` output ` , prepended to the
@@ -602,12 +602,12 @@ setTimeout(() => ac.abort(), 10000);
602
602
603
603
### Class: ` readlinePromises.Readline `
604
604
<!-- YAML
605
- added: REPLACEME
605
+ added: v17.0.0
606
606
-->
607
607
608
608
#### ` new readlinePromises.Readline(stream[, options]) `
609
609
<!-- YAML
610
- added: REPLACEME
610
+ added: v17.0.0
611
611
-->
612
612
613
613
* ` stream ` {stream.Writable} A [ TTY] [ ] stream.
@@ -616,7 +616,7 @@ added: REPLACEME
616
616
617
617
#### ` rl.clearLine(dir) `
618
618
<!-- YAML
619
- added: REPLACEME
619
+ added: v17.0.0
620
620
-->
621
621
622
622
* ` dir ` {integer}
@@ -633,7 +633,7 @@ was passed to the constructor.
633
633
634
634
#### ` rl.clearScreenDown() `
635
635
<!-- YAML
636
- added: REPLACEME
636
+ added: v17.0.0
637
637
-->
638
638
639
639
* Returns: this
@@ -646,7 +646,7 @@ was passed to the constructor.
646
646
647
647
#### ` rl.commit() `
648
648
<!-- YAML
649
- added: REPLACEME
649
+ added: v17.0.0
650
650
-->
651
651
652
652
* Returns: {Promise}
@@ -656,7 +656,7 @@ The `rl.commit()` method sends all the pending actions to the associated
656
656
657
657
#### ` rl.cursorTo(x[, y]) `
658
658
<!-- YAML
659
- added: REPLACEME
659
+ added: v17.0.0
660
660
-->
661
661
662
662
* ` x ` {integer}
@@ -670,7 +670,7 @@ was passed to the constructor.
670
670
671
671
#### ` rl.moveCursor(dx, dy) `
672
672
<!-- YAML
673
- added: REPLACEME
673
+ added: v17.0.0
674
674
-->
675
675
676
676
* ` dx ` {integer}
@@ -685,7 +685,7 @@ was passed to the constructor.
685
685
686
686
#### ` rl.rollback() `
687
687
<!-- YAML
688
- added: REPLACEME
688
+ added: v17.0.0
689
689
-->
690
690
691
691
* Returns: this
@@ -695,7 +695,7 @@ sending it to the associated `stream`.
695
695
696
696
### ` readlinePromises.createInterface(options) `
697
697
<!-- YAML
698
- added: REPLACEME
698
+ added: v17.0.0
699
699
-->
700
700
701
701
* ` options ` {Object}
@@ -797,7 +797,7 @@ added: v0.1.104
797
797
<!-- YAML
798
798
added: v0.1.104
799
799
changes:
800
- - version: REPLACEME
800
+ - version: v17.0.0
801
801
pr-url: https://github.com/nodejs/node/pull/37947
802
802
description: The class `readline.Interface` now inherits from `Interface`.
803
803
-->
0 commit comments