Skip to content

Commit fccbbfa

Browse files
committed
Tweaks + cheat sheet entry
1 parent 422cb44 commit fccbbfa

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

cheatsheet/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,19 @@ emitter.listeners(event)
6363
emitter.emit(event, [arg1], [arg2], [...])
6464
Event: 'newListener'
6565
```
66+
67+
## [Child Processes](#child-process)
68+
69+
Class: child_process
70+
71+
```
72+
const child_process = require('child_process')
73+
74+
child_process.exec(command[, options][, callback])
75+
child_process.execFile(file[, args][, options][, callback])
76+
child_process.fork(modulePath[, args][, options])
77+
child_process.spawn(command[, args][, options])
78+
79+
subprocess.send(message[, sendHandle[, options]][, callback])
80+
81+
```

child-processes/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ child2.on('exit', () => {
159159
child3.on('exit', () => {
160160
console.log('child3 exited');
161161
});
162-
```
163-
</div>
164-
165162
```
166163

167164
## ChildProcess Events

0 commit comments

Comments
 (0)