You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
7
+
8
+
<sectionclass="intro">
9
+
10
+
</section>
11
+
12
+
<!-- /.intro -->
13
+
14
+
<!-- Package usage documentation. -->
15
+
16
+
<sectionclass="usage">
17
+
18
+
## Usage
19
+
20
+
```javascript
21
+
var repl =require( '@stdlib/repl' );
22
+
```
23
+
24
+
#### repl( \[options\], clbk )
25
+
26
+
Starts a REPL environment.
27
+
28
+
```javascript
29
+
repl( onStart );
30
+
31
+
functiononStart( error, r ) {
32
+
if ( error ) {
33
+
throw error;
34
+
}
35
+
}
36
+
```
37
+
38
+
</section>
39
+
40
+
<!-- /.usage -->
41
+
42
+
<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
43
+
44
+
<sectionclass="notes">
45
+
46
+
</section>
47
+
48
+
<!-- /.notes -->
49
+
50
+
<!-- Package usage examples. -->
51
+
52
+
<sectionclass="examples">
53
+
54
+
## Examples
55
+
56
+
```javascript
57
+
var repl =require( '@stdlib/repl' );
58
+
59
+
// Start the REPL:
60
+
repl( onStart );
61
+
62
+
functiononStart( error, r ) {
63
+
if ( error ) {
64
+
throw error;
65
+
}
66
+
// After the REPL has started, exit the process...
67
+
setTimeout( onTimeout, 2500 );
68
+
69
+
functiononTimeout() {
70
+
r.close();
71
+
}
72
+
}
73
+
```
74
+
75
+
</section>
76
+
77
+
<!-- /.examples -->
78
+
79
+
80
+
---
81
+
82
+
<sectionclass="cli">
83
+
84
+
## CLI
85
+
86
+
<sectionclass="usage">
87
+
88
+
### Usage
89
+
90
+
```bash
91
+
Usage: stdlib-repl [options]
92
+
93
+
Options:
94
+
95
+
-h, --help Print this message.
96
+
-V, --version Print the package version.
97
+
```
98
+
99
+
</section>
100
+
101
+
<!-- /.usage -->
102
+
103
+
104
+
<sectionclass="examples">
105
+
106
+
### Examples
107
+
108
+
```bash
109
+
$ stdlib-repl
110
+
Starting REPL...
111
+
```
112
+
113
+
</section>
114
+
115
+
<!-- /.examples -->
116
+
117
+
</section>
118
+
119
+
<!-- /.cli -->
120
+
121
+
<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
122
+
123
+
<sectionclass="references">
124
+
125
+
</section>
126
+
127
+
<!-- /.references -->
128
+
129
+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
0 commit comments