From 405bf8c8bb42e87d59735bb96005d88dc2e2ccc7 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 23 Dec 2019 13:53:05 -0800 Subject: doc,child_process: use code markup/markdown in headers PR-URL: https://github.com/nodejs/node/pull/31086 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/child_process.md | 56 ++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'doc/api/child_process.md') diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 746de9bd2c8..6f74038b3c9 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -129,7 +129,7 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => { }); ``` -### child_process.exec(command\[, options\]\[, callback\]) +### `child_process.exec(command[, options][, callback])` @@ -593,7 +593,7 @@ const subprocess = spawn('prg', [], { subprocess.unref(); ``` -#### options.stdio +#### `options.stdio` @@ -916,7 +916,7 @@ use the [`child_process.spawn()`][], [`child_process.exec()`][], [`child_process.execFile()`][], or [`child_process.fork()`][] methods to create instances of `ChildProcess`. -### Event: 'close' +### Event: `'close'` @@ -945,7 +945,7 @@ ls.on('exit', (code) => { }); ``` -### Event: 'disconnect' +### Event: `'disconnect'` @@ -956,7 +956,7 @@ The `'disconnect'` event is emitted after calling the possible to send or receive messages, and the [`subprocess.connected`][] property is `false`. -### Event: 'error' +### Event: `'error'` * `err` {Error} The error. @@ -972,7 +972,7 @@ against accidentally invoking handler functions multiple times. See also [`subprocess.kill()`][] and [`subprocess.send()`][]. -### Event: 'exit' +### Event: `'exit'` @@ -995,7 +995,7 @@ re-raise the handled signal. See waitpid(2). -### Event: 'message' +### Event: `'message'` @@ -1015,7 +1015,7 @@ child process, the `message` argument can contain data that JSON is not able to represent. See [Advanced Serialization][] for more details. -### subprocess.channel +### `subprocess.channel` @@ -1025,7 +1025,7 @@ added: v7.1.0 The `subprocess.channel` property is a reference to the child's IPC channel. If no IPC channel currently exists, this property is `undefined`. -### subprocess.connected +### `subprocess.connected` @@ -1036,7 +1036,7 @@ The `subprocess.connected` property indicates whether it is still possible to send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages. -### subprocess.disconnect() +### `subprocess.disconnect()` @@ -1055,7 +1055,7 @@ When the child process is a Node.js instance (e.g. spawned using [`child_process.fork()`][]), the `process.disconnect()` method can be invoked within the child process to close the IPC channel as well. -### subprocess.kill(\[signal\]) +### `subprocess.kill([signal])` @@ -1117,7 +1117,7 @@ setTimeout(() => { }, 2000); ``` -### subprocess.killed +### `subprocess.killed` @@ -1129,7 +1129,7 @@ The `subprocess.killed` property indicates whether the child process successfully received a signal from `subprocess.kill()`. The `killed` property does not indicate that the child process has been terminated. -### subprocess.pid +### `subprocess.pid` @@ -1146,7 +1146,7 @@ console.log(`Spawned child pid: ${grep.pid}`); grep.stdin.end(); ``` -### subprocess.ref() +### `subprocess.ref()` @@ -1167,7 +1167,7 @@ subprocess.unref(); subprocess.ref(); ``` -### subprocess.send(message\[, sendHandle\[, options\]\]\[, callback\]) +### `subprocess.send(message[, sendHandle[, options]][, callback])` @@ -1363,7 +1363,7 @@ then this will be `null`. `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will refer to the same value. -### subprocess.stdin +### `subprocess.stdin` @@ -1381,7 +1381,7 @@ then this will be `null`. `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will refer to the same value. -### subprocess.stdio +### `subprocess.stdio` @@ -1421,7 +1421,7 @@ assert.strictEqual(subprocess.stdio[2], null); assert.strictEqual(subprocess.stdio[2], subprocess.stderr); ``` -### subprocess.stdout +### `subprocess.stdout` @@ -1446,7 +1446,7 @@ subprocess.stdout.on('data', (data) => { }); ``` -### subprocess.unref() +### `subprocess.unref()` -- cgit v1.2.3