@@ -127,6 +127,10 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {
127127### child_process.exec(command[ , options] [ , callback ] )
128128<!-- YAML
129129added: v0.1.90
130+ changes:
131+ - version: REPLACEME
132+ pr-url: https://github.com/nodejs/node/pull/15380
133+ description: The `windowsHide` option is supported now.
130134-->
131135
132136* ` command ` {string} The command to run, with space-separated arguments.
@@ -144,6 +148,8 @@ added: v0.1.90
144148 * ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
145149 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
146150 * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
151+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
152+ normally be created on Windows systems. ** Default:** ` false ` .
147153* ` callback ` {Function} called with the output when process terminates.
148154 * ` error ` {Error}
149155 * ` stdout ` {string|Buffer}
@@ -237,6 +243,10 @@ lsExample();
237243### child_process.execFile(file[ , args] [ , options ] [ , callback] )
238244<!-- YAML
239245added: v0.1.91
246+ changes:
247+ - version: REPLACEME
248+ pr-url: https://github.com/nodejs/node/pull/15380
249+ description: The `windowsHide` option is supported now.
240250-->
241251
242252* ` file ` {string} The name or path of the executable file to run.
@@ -252,6 +262,8 @@ added: v0.1.91
252262 * ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
253263 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
254264 * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
265+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
266+ normally be created on Windows systems. ** Default:** ` false ` .
255267* ` callback ` {Function} Called with the output when process terminates.
256268 * ` error ` {Error}
257269 * ` stdout ` {string|Buffer}
@@ -363,6 +375,9 @@ supported by `child_process.fork()` and will be ignored if set.
363375<!-- YAML
364376added: v0.1.90
365377changes:
378+ - version: REPLACEME
379+ pr-url: https://github.com/nodejs/node/pull/15380
380+ description: The `windowsHide` option is supported now.
366381 - version: v6.4.0
367382 pr-url: https://github.com/nodejs/node/pull/7696
368383 description: The `argv0` option is supported now.
@@ -389,6 +404,8 @@ changes:
389404 ` '/bin/sh' ` on UNIX, and ` process.env.ComSpec ` on Windows. A different
390405 shell can be specified as a string. See [ Shell Requirements] [ ] and
391406 [ Default Windows Shell] [ ] . ** Default:** ` false ` (no shell).
407+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
408+ normally be created on Windows systems. ** Default:** ` false ` .
392409* Returns: {ChildProcess}
393410
394411The ` child_process.spawn() ` method spawns a new process using the given
@@ -648,6 +665,9 @@ configuration at startup.
648665<!-- YAML
649666added: v0.11.12
650667changes:
668+ - version: REPLACEME
669+ pr-url: https://github.com/nodejs/node/pull/15380
670+ description: The `windowsHide` option is supported now.
651671 - version: v8.0.0
652672 pr-url: https://github.com/nodejs/node/pull/10653
653673 description: The `input` option can now be a `Uint8Array`.
@@ -677,6 +697,8 @@ changes:
677697 stderr. ** Default:** ` 200*1024 ` If exceeded, the child process is terminated.
678698 See caveat at [ ` maxBuffer ` and Unicode] [ ] .
679699 * ` encoding ` {string} The encoding used for all stdio inputs and outputs. ** Default:** ` 'buffer' `
700+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
701+ normally be created on Windows systems. ** Default:** ` false ` .
680702* Returns: {Buffer|string} The stdout from the command.
681703
682704The ` child_process.execFileSync() ` method is generally identical to
@@ -697,6 +719,9 @@ throw an [`Error`][] that will include the full result of the underlying
697719<!-- YAML
698720added: v0.11.12
699721changes:
722+ - version: REPLACEME
723+ pr-url: https://github.com/nodejs/node/pull/15380
724+ description: The `windowsHide` option is supported now.
700725 - version: v8.0.0
701726 pr-url: https://github.com/nodejs/node/pull/10653
702727 description: The `input` option can now be a `Uint8Array`.
@@ -726,6 +751,8 @@ changes:
726751 See caveat at [ ` maxBuffer ` and Unicode] [ ] .
727752 * ` encoding ` {string} The encoding used for all stdio inputs and outputs.
728753 ** Default:** ` 'buffer' `
754+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
755+ normally be created on Windows systems. ** Default:** ` false ` .
729756* Returns: {Buffer|string} The stdout from the command.
730757
731758The ` child_process.execSync() ` method is generally identical to
@@ -748,6 +775,9 @@ execution.
748775<!-- YAML
749776added: v0.11.12
750777changes:
778+ - version: REPLACEME
779+ pr-url: https://github.com/nodejs/node/pull/15380
780+ description: The `windowsHide` option is supported now.
751781 - version: v8.0.0
752782 pr-url: https://github.com/nodejs/node/pull/10653
753783 description: The `input` option can now be a `Uint8Array`.
@@ -783,6 +813,8 @@ changes:
783813 ` '/bin/sh' ` on UNIX, and ` process.env.ComSpec ` on Windows. A different
784814 shell can be specified as a string. See [ Shell Requirements] [ ] and
785815 [ Default Windows Shell] [ ] . ** Default:** ` false ` (no shell).
816+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
817+ normally be created on Windows systems. ** Default:** ` false ` .
786818* Returns: {Object}
787819 * ` pid ` {number} Pid of the child process.
788820 * ` output ` {Array} Array of results from stdio output.
0 commit comments