@@ -135,9 +135,9 @@ added: v0.1.90
135
135
understand the ` -c ` switch on UNIX or ` /s /c ` on Windows. On Windows,
136
136
command line parsing should be compatible with ` cmd.exe ` .)
137
137
* ` timeout ` {number} (Default: ` 0 ` )
138
- * [ ` maxBuffer ` ] [ ] {Number } largest amount of data (in bytes) allowed on
138
+ * [ ` maxBuffer ` ] [ ] {number } largest amount of data (in bytes) allowed on
139
139
stdout or stderr - if exceeded child process is killed (Default: ` 200*1024 ` )
140
- * ` killSignal ` {string|Integer } (Default: ` 'SIGTERM' ` )
140
+ * ` killSignal ` {string|integer } (Default: ` 'SIGTERM' ` )
141
141
* ` uid ` {number} Sets the user identity of the process. (See setuid(2).)
142
142
* ` gid ` {number} Sets the group identity of the process. (See setgid(2).)
143
143
* ` callback ` {Function} called with the output when process terminates
@@ -212,9 +212,9 @@ added: v0.1.91
212
212
* ` env ` {Object} Environment key-value pairs
213
213
* ` encoding ` {string} (Default: ` 'utf8' ` )
214
214
* ` timeout ` {number} (Default: ` 0 ` )
215
- * [ ` maxBuffer ` ] [ ] {Number } largest amount of data (in bytes) allowed on
215
+ * [ ` maxBuffer ` ] [ ] {number } largest amount of data (in bytes) allowed on
216
216
stdout or stderr - if exceeded child process is killed (Default: ` 200*1024 ` )
217
- * ` killSignal ` {string|Integer } (Default: ` 'SIGTERM' ` )
217
+ * ` killSignal ` {string|integer } (Default: ` 'SIGTERM' ` )
218
218
* ` uid ` {number} Sets the user identity of the process. (See setuid(2).)
219
219
* ` gid ` {number} Sets the group identity of the process. (See setgid(2).)
220
220
* ` callback ` {Function} called with the output when process terminates
@@ -583,17 +583,17 @@ added: v0.11.12
583
583
* ` input ` {string|Buffer} The value which will be passed as stdin to the
584
584
spawned process
585
585
- supplying this value will override ` stdio[0] `
586
- * ` stdio ` {string | Array} Child's stdio configuration. (Default: ` 'pipe' ` )
586
+ * ` stdio ` {string| Array} Child's stdio configuration. (Default: ` 'pipe' ` )
587
587
- ` stderr ` by default will be output to the parent process' stderr unless
588
588
` stdio ` is specified
589
589
* ` env ` {Object} Environment key-value pairs
590
590
* ` uid ` {number} Sets the user identity of the process. (See setuid(2).)
591
591
* ` gid ` {number} Sets the group identity of the process. (See setgid(2).)
592
592
* ` timeout ` {number} In milliseconds the maximum amount of time the process
593
593
is allowed to run. (Default: ` undefined ` )
594
- * ` killSignal ` {string|Integer } The signal value to be used when the spawned
594
+ * ` killSignal ` {string|integer } The signal value to be used when the spawned
595
595
process will be killed. (Default: ` 'SIGTERM' ` )
596
- * [ ` maxBuffer ` ] [ ] {Number } largest amount of data (in bytes) allowed on
596
+ * [ ` maxBuffer ` ] [ ] {number } largest amount of data (in bytes) allowed on
597
597
stdout or stderr - if exceeded child process is killed
598
598
* ` encoding ` {string} The encoding used for all stdio inputs and outputs. (Default: ` 'buffer' ` )
599
599
* Returns: {Buffer|string} The stdout from the command
@@ -621,7 +621,7 @@ added: v0.11.12
621
621
* ` input ` {string|Buffer} The value which will be passed as stdin to the
622
622
spawned process
623
623
- supplying this value will override ` stdio[0] `
624
- * ` stdio ` {string | Array} Child's stdio configuration. (Default: ` 'pipe' ` )
624
+ * ` stdio ` {string| Array} Child's stdio configuration. (Default: ` 'pipe' ` )
625
625
- ` stderr ` by default will be output to the parent process' stderr unless
626
626
` stdio ` is specified
627
627
* ` env ` {Object} Environment key-value pairs
@@ -633,9 +633,9 @@ added: v0.11.12
633
633
* ` gid ` {number} Sets the group identity of the process. (See setgid(2).)
634
634
* ` timeout ` {number} In milliseconds the maximum amount of time the process
635
635
is allowed to run. (Default: ` undefined ` )
636
- * ` killSignal ` {string|Integer } The signal value to be used when the spawned
636
+ * ` killSignal ` {string|integer } The signal value to be used when the spawned
637
637
process will be killed. (Default: ` 'SIGTERM' ` )
638
- * [ ` maxBuffer ` ] [ ] {Number } largest amount of data (in bytes) allowed on
638
+ * [ ` maxBuffer ` ] [ ] {number } largest amount of data (in bytes) allowed on
639
639
stdout or stderr - if exceeded child process is killed
640
640
* ` encoding ` {string} The encoding used for all stdio inputs and outputs.
641
641
(Default: ` 'buffer' ` )
@@ -669,15 +669,15 @@ added: v0.11.12
669
669
* ` input ` {string|Buffer} The value which will be passed as stdin to the
670
670
spawned process
671
671
- supplying this value will override ` stdio[0] `
672
- * ` stdio ` {string | Array} Child's stdio configuration.
672
+ * ` stdio ` {string| Array} Child's stdio configuration.
673
673
* ` env ` {Object} Environment key-value pairs
674
674
* ` uid ` {number} Sets the user identity of the process. (See setuid(2).)
675
675
* ` gid ` {number} Sets the group identity of the process. (See setgid(2).)
676
676
* ` timeout ` {number} In milliseconds the maximum amount of time the process
677
677
is allowed to run. (Default: ` undefined ` )
678
- * ` killSignal ` {string|Integer } The signal value to be used when the spawned
678
+ * ` killSignal ` {string|integer } The signal value to be used when the spawned
679
679
process will be killed. (Default: ` 'SIGTERM' ` )
680
- * [ ` maxBuffer ` ] [ ] {Number } largest amount of data (in bytes) allowed on
680
+ * [ ` maxBuffer ` ] [ ] {number } largest amount of data (in bytes) allowed on
681
681
stdout or stderr - if exceeded child process is killed
682
682
* ` encoding ` {string} The encoding used for all stdio inputs and outputs.
683
683
(Default: ` 'buffer' ` )
@@ -797,7 +797,7 @@ to send messages.
797
797
added: v0.7.2
798
798
-->
799
799
800
- * {Boolean } Set to ` false ` after ` child.disconnect() ` is called
800
+ * {boolean } Set to ` false ` after ` child.disconnect() ` is called
801
801
802
802
The ` child.connected ` property indicates whether it is still possible to send
803
803
and receive messages from a child process. When ` child.connected ` is ` false ` , it
@@ -884,7 +884,7 @@ setTimeout(() => {
884
884
added: v0.1.90
885
885
-->
886
886
887
- * {Number } Integer
887
+ * {number } Integer
888
888
889
889
Returns the process identifier (PID) of the child process.
890
890
@@ -907,7 +907,7 @@ added: v0.5.9
907
907
* ` sendHandle ` {Handle}
908
908
* ` options ` {Object}
909
909
* ` callback ` {Function}
910
- * Returns: {Boolean }
910
+ * Returns: {boolean }
911
911
912
912
When an IPC channel has been established between the parent and child (
913
913
i.e. when using [ ` child_process.fork() ` ] [ ] ), the ` child.send() ` method can be
0 commit comments