@@ -127,6 +127,10 @@ exec('"my script.cmd" a b', (err, stdout, stderr) => {
127
127
### child_process.exec(command[ , options] [ , callback ] )
128
128
<!-- YAML
129
129
added: 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.
130
134
-->
131
135
132
136
* ` command ` {string} The command to run, with space-separated arguments.
@@ -144,6 +148,8 @@ added: v0.1.90
144
148
* ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
145
149
* ` uid ` {number} Sets the user identity of the process (see setuid(2)).
146
150
* ` 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 ` .
147
153
* ` callback ` {Function} called with the output when process terminates.
148
154
* ` error ` {Error}
149
155
* ` stdout ` {string|Buffer}
@@ -237,6 +243,10 @@ lsExample();
237
243
### child_process.execFile(file[ , args] [ , options ] [ , callback] )
238
244
<!-- YAML
239
245
added: 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.
240
250
-->
241
251
242
252
* ` file ` {string} The name or path of the executable file to run.
@@ -252,6 +262,8 @@ added: v0.1.91
252
262
* ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
253
263
* ` uid ` {number} Sets the user identity of the process (see setuid(2)).
254
264
* ` 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 ` .
255
267
* ` callback ` {Function} Called with the output when process terminates.
256
268
* ` error ` {Error}
257
269
* ` stdout ` {string|Buffer}
@@ -363,6 +375,9 @@ supported by `child_process.fork()` and will be ignored if set.
363
375
<!-- YAML
364
376
added: v0.1.90
365
377
changes:
378
+ - version: REPLACEME
379
+ pr-url: https://github.com/nodejs/node/pull/15380
380
+ description: The `windowsHide` option is supported now.
366
381
- version: v6.4.0
367
382
pr-url: https://github.com/nodejs/node/pull/7696
368
383
description: The `argv0` option is supported now.
@@ -389,6 +404,8 @@ changes:
389
404
` '/bin/sh' ` on UNIX, and ` process.env.ComSpec ` on Windows. A different
390
405
shell can be specified as a string. See [ Shell Requirements] [ ] and
391
406
[ 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 ` .
392
409
* Returns: {ChildProcess}
393
410
394
411
The ` child_process.spawn() ` method spawns a new process using the given
@@ -648,6 +665,9 @@ configuration at startup.
648
665
<!-- YAML
649
666
added: v0.11.12
650
667
changes:
668
+ - version: REPLACEME
669
+ pr-url: https://github.com/nodejs/node/pull/15380
670
+ description: The `windowsHide` option is supported now.
651
671
- version: v8.0.0
652
672
pr-url: https://github.com/nodejs/node/pull/10653
653
673
description: The `input` option can now be a `Uint8Array`.
@@ -677,6 +697,8 @@ changes:
677
697
stderr. ** Default:** ` 200*1024 ` If exceeded, the child process is terminated.
678
698
See caveat at [ ` maxBuffer ` and Unicode] [ ] .
679
699
* ` 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 ` .
680
702
* Returns: {Buffer|string} The stdout from the command.
681
703
682
704
The ` child_process.execFileSync() ` method is generally identical to
@@ -697,6 +719,9 @@ throw an [`Error`][] that will include the full result of the underlying
697
719
<!-- YAML
698
720
added: v0.11.12
699
721
changes:
722
+ - version: REPLACEME
723
+ pr-url: https://github.com/nodejs/node/pull/15380
724
+ description: The `windowsHide` option is supported now.
700
725
- version: v8.0.0
701
726
pr-url: https://github.com/nodejs/node/pull/10653
702
727
description: The `input` option can now be a `Uint8Array`.
@@ -726,6 +751,8 @@ changes:
726
751
See caveat at [ ` maxBuffer ` and Unicode] [ ] .
727
752
* ` encoding ` {string} The encoding used for all stdio inputs and outputs.
728
753
** Default:** ` 'buffer' `
754
+ * ` windowsHide ` {boolean} Hide the subprocess console window that would
755
+ normally be created on Windows systems. ** Default:** ` false ` .
729
756
* Returns: {Buffer|string} The stdout from the command.
730
757
731
758
The ` child_process.execSync() ` method is generally identical to
@@ -748,6 +775,9 @@ execution.
748
775
<!-- YAML
749
776
added: v0.11.12
750
777
changes:
778
+ - version: REPLACEME
779
+ pr-url: https://github.com/nodejs/node/pull/15380
780
+ description: The `windowsHide` option is supported now.
751
781
- version: v8.0.0
752
782
pr-url: https://github.com/nodejs/node/pull/10653
753
783
description: The `input` option can now be a `Uint8Array`.
@@ -783,6 +813,8 @@ changes:
783
813
` '/bin/sh' ` on UNIX, and ` process.env.ComSpec ` on Windows. A different
784
814
shell can be specified as a string. See [ Shell Requirements] [ ] and
785
815
[ 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 ` .
786
818
* Returns: {Object}
787
819
* ` pid ` {number} Pid of the child process.
788
820
* ` output ` {Array} Array of results from stdio output.
0 commit comments