You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -228,15 +228,19 @@ For more details, visit https://github.com/open-cli-tools/concurrently
228
228
concurrently can be used programmatically by using the API documented below:
229
229
230
230
### `concurrently(commands[, options])`
231
+
231
232
-`commands`: an array of either strings (containing the commands to run) or objects
232
233
with the shape `{ command, name, prefixColor, env, cwd }`.
234
+
233
235
-`options` (optional): an object containing any of the below:
234
236
-`cwd`: the working directory to be used by all commands. Can be overriden per command.
235
237
Default: `process.cwd()`.
236
238
-`defaultInputTarget`: the default input target when reading from `inputStream`.
237
239
Default: `0`.
240
+
-`handleInput`: when `true`, reads input from `process.stdin`.
238
241
-`inputStream`: a [`Readable` stream](https://nodejs.org/dist/latest-v10.x/docs/api/stream.html#stream_readable_streams)
239
-
to read the input from, eg `process.stdin`.
242
+
to read the input from. Should only be used in the rare instance you would like to stream anything other than `process.stdin`. Overrides `handleInput`.
243
+
-`pauseInputStreamOnFinish`: by default, pauses the input stream (`process.stdin` when `handleInput` is enabled, or `inputStream` if provided) when all of the processes have finished. If you need to read from the input stream after `concurrently` has finished, set this to `false`. ([#252](https://github.com/kimmobrunfeldt/concurrently/issues/252)).
240
244
-`killOthers`: an array of exitting conditions that will cause a process to kill others.
241
245
Can contain any of `success` or `failure`.
242
246
-`maxProcesses`: how many processes should run at once.
0 commit comments