Skip to content

Commit 2a82d54

Browse files
h3knixtargos
authored andcommitted
doc: update env default on child_process functions
PR-URL: #28776 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 7df5498 commit 2a82d54

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/child_process.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ changes:
142142
* `options` {Object}
143143
* `cwd` {string} Current working directory of the child process.
144144
**Default:** `null`.
145-
* `env` {Object} Environment key-value pairs. **Default:** `null`.
145+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
146146
* `encoding` {string} **Default:** `'utf8'`
147147
* `shell` {string} Shell to execute the command with. See
148148
[Shell Requirements][] and [Default Windows Shell][]. **Default:**
@@ -245,7 +245,7 @@ changes:
245245
* `args` {string[]} List of string arguments.
246246
* `options` {Object}
247247
* `cwd` {string} Current working directory of the child process.
248-
* `env` {Object} Environment key-value pairs.
248+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
249249
* `encoding` {string} **Default:** `'utf8'`
250250
* `timeout` {number} **Default:** `0`
251251
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
@@ -335,7 +335,7 @@ changes:
335335
* `detached` {boolean} Prepare child to run independently of its parent
336336
process. Specific behavior depends on the platform, see
337337
[`options.detached`][]).
338-
* `env` {Object} Environment key-value pairs.
338+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
339339
* `execPath` {string} Executable used to create the child process.
340340
* `execArgv` {string[]} List of string arguments passed to the executable.
341341
**Default:** `process.execArgv`.
@@ -400,7 +400,7 @@ changes:
400400
* `args` {string[]} List of string arguments.
401401
* `options` {Object}
402402
* `cwd` {string} Current working directory of the child process.
403-
* `env` {Object} Environment key-value pairs.
403+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
404404
* `argv0` {string} Explicitly set the value of `argv[0]` sent to the child
405405
process. This will be set to `command` if not specified.
406406
* `stdio` {Array|string} Child's stdio configuration (see
@@ -714,7 +714,7 @@ changes:
714714
* `stdio` {string|Array} Child's stdio configuration. `stderr` by default will
715715
be output to the parent process' stderr unless `stdio` is specified.
716716
**Default:** `'pipe'`.
717-
* `env` {Object} Environment key-value pairs.
717+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
718718
* `uid` {number} Sets the user identity of the process (see setuid(2)).
719719
* `gid` {number} Sets the group identity of the process (see setgid(2)).
720720
* `timeout` {number} In milliseconds the maximum amount of time the process
@@ -777,7 +777,7 @@ changes:
777777
* `stdio` {string|Array} Child's stdio configuration. `stderr` by default will
778778
be output to the parent process' stderr unless `stdio` is specified.
779779
**Default:** `'pipe'`.
780-
* `env` {Object} Environment key-value pairs.
780+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
781781
* `shell` {string} Shell to execute the command with. See
782782
[Shell Requirements][] and [Default Windows Shell][]. **Default:**
783783
`'/bin/sh'` on Unix, `process.env.ComSpec` on Windows.
@@ -844,7 +844,7 @@ changes:
844844
* `argv0` {string} Explicitly set the value of `argv[0]` sent to the child
845845
process. This will be set to `command` if not specified.
846846
* `stdio` {string|Array} Child's stdio configuration.
847-
* `env` {Object} Environment key-value pairs.
847+
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
848848
* `uid` {number} Sets the user identity of the process (see setuid(2)).
849849
* `gid` {number} Sets the group identity of the process (see setgid(2)).
850850
* `timeout` {number} In milliseconds the maximum amount of time the process

0 commit comments

Comments
 (0)