1
- #node-mock-stdin
1
+ # node-mock-stdin
2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/caitp/node-mock-stdin.svg?branch=master )] ( https://travis-ci.org/caitp/node-mock-stdin ) [ ![ Coverage Status] ( https://img.shields.io/coveralls/caitp/node-mock-stdin.svg )] ( https://coveralls.io/r/caitp/node-mock-stdin?branch=master ) [ ![ NPM Version] ( http://img.shields.io/npm/v/mock-stdin.svg )] ( https://www.npmjs.org/package/mock-stdin )
4
4
@@ -7,19 +7,19 @@ Provide a mock readable stream, useful for testing interactive CLI applications.
7
7
Maybe simple mocks for other standard files wouldn't be a terrible idea, if anyone
8
8
feels like those are needed. Patches welcome.
9
9
10
- ##API
10
+ ## API
11
11
12
12
- ** Module**
13
13
- [ stdin()] ( #modulestdin )
14
14
- ** MockSTDIN**
15
- - [ send()] ( #mockstdinsenddata )
15
+ - [ send()] ( #mockstdinsenddata-encoding )
16
16
- [ end()] ( #mockstdinend )
17
17
- [ restore()] ( #mockstdinrestore )
18
18
- [ reset()] ( #mockstdinresetremovelisteners )
19
19
20
20
---
21
21
22
- ###### Module# stdin()
22
+ ### Module. stdin()
23
23
24
24
** example**
25
25
@@ -39,7 +39,7 @@ registered.
39
39
40
40
---
41
41
42
- ###### MockSTDIN# send(data, encoding)
42
+ ### MockSTDIN. send(data, encoding)
43
43
44
44
** example**
45
45
@@ -70,7 +70,7 @@ dispatched.
70
70
71
71
---
72
72
73
- ###### MockSTDIN# end()
73
+ ### MockSTDIN. end()
74
74
75
75
** example**
76
76
@@ -79,13 +79,13 @@ var stdin = require('mock-stdin').stdin();
79
79
stdin .end ();
80
80
```
81
81
82
- Alias for [ MockSTDIN# send(null)] ( #mockstdinsend ) . Results in dispatching an ` end ` event.
82
+ Alias for [ MockSTDIN. send(null)] ( #mockstdinsend ) . Results in dispatching an ` end ` event.
83
83
84
84
** return value** : The ` MockSTDIN ` instance, for chaining.
85
85
86
86
---
87
87
88
- ###### MockSTDIN# restore()
88
+ ### MockSTDIN. restore()
89
89
90
90
** example**
91
91
@@ -104,7 +104,7 @@ stream which was active at the time the mock was created.
104
104
105
105
---
106
106
107
- ###### MockSTDIN# reset(removeListeners)
107
+ ### MockSTDIN. reset(removeListeners)
108
108
109
109
** example**
110
110
@@ -132,7 +132,7 @@ re-creating the mock object.
132
132
133
133
---
134
134
135
- ##[ LICENSE] ( LICENSE )
135
+ ## [ LICENSE] ( LICENSE )
136
136
137
137
The MIT License (MIT)
138
138
0 commit comments