@@ -129,7 +129,7 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {
129
129
});
130
130
```
131
131
132
- ### child_process.exec(command\ [ , options\]\ [ , callback\] )
132
+ ### ` child_process.exec(command[, options] [, callback]) `
133
133
<!-- YAML
134
134
added: v0.1.90
135
135
changes:
@@ -233,7 +233,7 @@ async function lsExample() {
233
233
lsExample ();
234
234
```
235
235
236
- ### child_process.execFile(file\ [ , args\]\ [ , options\]\ [ , callback\] )
236
+ ### ` child_process.execFile(file[, args] [, options] [, callback]) `
237
237
<!-- YAML
238
238
added: v0.1.91
239
239
changes:
@@ -317,7 +317,7 @@ getVersion();
317
317
function. Any input containing shell metacharacters may be used to trigger
318
318
arbitrary command execution.**
319
319
320
- ### child_process.fork(modulePath\ [ , args\]\ [ , options\] )
320
+ ### ` child_process.fork(modulePath[, args] [, options]) `
321
321
<!-- YAML
322
322
added: v0.5.0
323
323
changes:
@@ -388,7 +388,7 @@ current process.
388
388
The ` shell ` option available in [ ` child_process.spawn() ` ] [ ] is not supported by
389
389
` child_process.fork() ` and will be ignored if set.
390
390
391
- ### child_process.spawn(command\ [ , args\]\ [ , options\] )
391
+ ### ` child_process.spawn(command[, args] [, options]) `
392
392
<!-- YAML
393
393
added: v0.1.90
394
394
changes:
@@ -535,7 +535,7 @@ Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so
535
535
parameter passed to ` spawn ` from the parent, retrieve it with the
536
536
` process.argv0 ` property instead.
537
537
538
- #### options.detached
538
+ #### ` options.detached `
539
539
<!-- YAML
540
540
added: v0.7.10
541
541
-->
@@ -593,7 +593,7 @@ const subprocess = spawn('prg', [], {
593
593
subprocess .unref ();
594
594
```
595
595
596
- #### options.stdio
596
+ #### ` options.stdio `
597
597
<!-- YAML
598
598
added: v0.7.10
599
599
changes:
@@ -698,7 +698,7 @@ Blocking calls like these are mostly useful for simplifying general-purpose
698
698
scripting tasks and for simplifying the loading/processing of application
699
699
configuration at startup.
700
700
701
- ### child_process.execFileSync(file\ [ , args\]\ [ , options\] )
701
+ ### ` child_process.execFileSync(file[, args] [, options]) `
702
702
<!-- YAML
703
703
added: v0.11.12
704
704
changes:
@@ -765,7 +765,7 @@ If the process times out or has a non-zero exit code, this method will throw an
765
765
function. Any input containing shell metacharacters may be used to trigger
766
766
arbitrary command execution.**
767
767
768
- ### child_process.execSync(command\ [ , options\] )
768
+ ### ` child_process.execSync(command[, options]) `
769
769
<!-- YAML
770
770
added: v0.11.12
771
771
changes:
@@ -825,7 +825,7 @@ The [`Error`][] object will contain the entire result from
825
825
** Never pass unsanitized user input to this function. Any input containing shell
826
826
metacharacters may be used to trigger arbitrary command execution.**
827
827
828
- ### child_process.spawnSync(command\ [ , args\]\ [ , options\] )
828
+ ### ` child_process.spawnSync(command[, args] [, options]) `
829
829
<!-- YAML
830
830
added: v0.11.12
831
831
changes:
@@ -902,7 +902,7 @@ exited.
902
902
function. Any input containing shell metacharacters may be used to trigger
903
903
arbitrary command execution.**
904
904
905
- ## Class: ChildProcess
905
+ ## Class: ` ChildProcess `
906
906
<!-- YAML
907
907
added: v2.2.0
908
908
-->
@@ -916,7 +916,7 @@ use the [`child_process.spawn()`][], [`child_process.exec()`][],
916
916
[ ` child_process.execFile() ` ] [ ] , or [ ` child_process.fork() ` ] [ ] methods to create
917
917
instances of ` ChildProcess ` .
918
918
919
- ### Event: 'close'
919
+ ### Event: ` 'close' `
920
920
<!-- YAML
921
921
added: v0.7.7
922
922
-->
@@ -945,7 +945,7 @@ ls.on('exit', (code) => {
945
945
});
946
946
```
947
947
948
- ### Event: 'disconnect'
948
+ ### Event: ` 'disconnect' `
949
949
<!-- YAML
950
950
added: v0.7.2
951
951
-->
@@ -956,7 +956,7 @@ The `'disconnect'` event is emitted after calling the
956
956
possible to send or receive messages, and the [ ` subprocess.connected ` ] [ ]
957
957
property is ` false ` .
958
958
959
- ### Event: 'error'
959
+ ### Event: ` 'error' `
960
960
961
961
* ` err ` {Error} The error.
962
962
@@ -972,7 +972,7 @@ against accidentally invoking handler functions multiple times.
972
972
973
973
See also [ ` subprocess.kill() ` ] [ ] and [ ` subprocess.send() ` ] [ ] .
974
974
975
- ### Event: 'exit'
975
+ ### Event: ` 'exit' `
976
976
<!-- YAML
977
977
added: v0.1.90
978
978
-->
@@ -995,7 +995,7 @@ re-raise the handled signal.
995
995
996
996
See waitpid(2).
997
997
998
- ### Event: 'message'
998
+ ### Event: ` 'message' `
999
999
<!-- YAML
1000
1000
added: v0.5.9
1001
1001
-->
@@ -1015,7 +1015,7 @@ child process, the `message` argument can contain data that JSON is not able
1015
1015
to represent.
1016
1016
See [ Advanced Serialization] [ ] for more details.
1017
1017
1018
- ### subprocess.channel
1018
+ ### ` subprocess.channel `
1019
1019
<!-- YAML
1020
1020
added: v7.1.0
1021
1021
-->
@@ -1025,7 +1025,7 @@ added: v7.1.0
1025
1025
The ` subprocess.channel ` property is a reference to the child's IPC channel. If
1026
1026
no IPC channel currently exists, this property is ` undefined ` .
1027
1027
1028
- ### subprocess.connected
1028
+ ### ` subprocess.connected `
1029
1029
<!-- YAML
1030
1030
added: v0.7.2
1031
1031
-->
@@ -1036,7 +1036,7 @@ The `subprocess.connected` property indicates whether it is still possible to
1036
1036
send and receive messages from a child process. When ` subprocess.connected ` is
1037
1037
` false ` , it is no longer possible to send or receive messages.
1038
1038
1039
- ### subprocess.disconnect()
1039
+ ### ` subprocess.disconnect() `
1040
1040
<!-- YAML
1041
1041
added: v0.7.2
1042
1042
-->
@@ -1055,7 +1055,7 @@ When the child process is a Node.js instance (e.g. spawned using
1055
1055
[ ` child_process.fork() ` ] [ ] ), the ` process.disconnect() ` method can be invoked
1056
1056
within the child process to close the IPC channel as well.
1057
1057
1058
- ### subprocess.kill(\ [ signal\] )
1058
+ ### ` subprocess.kill([signal]) `
1059
1059
<!-- YAML
1060
1060
added: v0.1.90
1061
1061
-->
@@ -1117,7 +1117,7 @@ setTimeout(() => {
1117
1117
}, 2000 );
1118
1118
```
1119
1119
1120
- ### subprocess.killed
1120
+ ### ` subprocess.killed `
1121
1121
<!-- YAML
1122
1122
added: v0.5.10
1123
1123
-->
@@ -1129,7 +1129,7 @@ The `subprocess.killed` property indicates whether the child process
1129
1129
successfully received a signal from ` subprocess.kill() ` . The ` killed ` property
1130
1130
does not indicate that the child process has been terminated.
1131
1131
1132
- ### subprocess.pid
1132
+ ### ` subprocess.pid `
1133
1133
<!-- YAML
1134
1134
added: v0.1.90
1135
1135
-->
@@ -1146,7 +1146,7 @@ console.log(`Spawned child pid: ${grep.pid}`);
1146
1146
grep .stdin .end ();
1147
1147
```
1148
1148
1149
- ### subprocess.ref()
1149
+ ### ` subprocess.ref() `
1150
1150
<!-- YAML
1151
1151
added: v0.7.10
1152
1152
-->
@@ -1167,7 +1167,7 @@ subprocess.unref();
1167
1167
subprocess .ref ();
1168
1168
```
1169
1169
1170
- ### subprocess.send(message\ [ , sendHandle\ [ , options\]\]\ [ , callback\] )
1170
+ ### ` subprocess.send(message[, sendHandle[, options]] [, callback]) `
1171
1171
<!-- YAML
1172
1172
added: v0.5.9
1173
1173
changes:
@@ -1348,7 +1348,7 @@ It is also recommended that any `'message'` handlers in the child process
1348
1348
verify that ` socket ` exists, as the connection may have been closed during the
1349
1349
time it takes to send the connection to the child.
1350
1350
1351
- ### subprocess.stderr
1351
+ ### ` subprocess.stderr `
1352
1352
<!-- YAML
1353
1353
added: v0.1.90
1354
1354
-->
@@ -1363,7 +1363,7 @@ then this will be `null`.
1363
1363
` subprocess.stderr ` is an alias for ` subprocess.stdio[2] ` . Both properties will
1364
1364
refer to the same value.
1365
1365
1366
- ### subprocess.stdin
1366
+ ### ` subprocess.stdin `
1367
1367
<!-- YAML
1368
1368
added: v0.1.90
1369
1369
-->
@@ -1381,7 +1381,7 @@ then this will be `null`.
1381
1381
` subprocess.stdin ` is an alias for ` subprocess.stdio[0] ` . Both properties will
1382
1382
refer to the same value.
1383
1383
1384
- ### subprocess.stdio
1384
+ ### ` subprocess.stdio `
1385
1385
<!-- YAML
1386
1386
added: v0.7.10
1387
1387
-->
@@ -1421,7 +1421,7 @@ assert.strictEqual(subprocess.stdio[2], null);
1421
1421
assert .strictEqual (subprocess .stdio [2 ], subprocess .stderr );
1422
1422
```
1423
1423
1424
- ### subprocess.stdout
1424
+ ### ` subprocess.stdout `
1425
1425
<!-- YAML
1426
1426
added: v0.1.90
1427
1427
-->
@@ -1446,7 +1446,7 @@ subprocess.stdout.on('data', (data) => {
1446
1446
});
1447
1447
```
1448
1448
1449
- ### subprocess.unref()
1449
+ ### ` subprocess.unref() `
1450
1450
<!-- YAML
1451
1451
added: v0.7.10
1452
1452
-->
0 commit comments