StartProcessOptions
StartProcessOptions =
object
Defined in: packages/node/src/process/start-process.ts:10
Properties
Section titled “Properties”
readonlyoptionalcwd?:string|null
Defined in: packages/node/src/process/start-process.ts:17
detached?
Section titled “detached?”
readonlyoptionaldetached?:boolean|null
Defined in: packages/node/src/process/start-process.ts:37
Makes the child lead its own process group, so terminate, kill and an
aborted signal reach everything it spawns rather than the child alone.
readonlyoptionalenv?:NodeJS.ProcessEnv|null
Defined in: packages/node/src/process/start-process.ts:19
graceMs?
Section titled “graceMs?”
readonlyoptionalgraceMs?:number|null
Defined in: packages/node/src/process/start-process.ts:45
Grace period before terminate escalates to SIGKILL. Default 5000.
input?
Section titled “input?”
readonlyoptionalinput?:string|Uint8Array|null
Defined in: packages/node/src/process/start-process.ts:25
Written to the child’s stdin, which is then closed.
onOutput?
Section titled “onOutput?”
readonlyoptionalonOutput?:Callable<[ProcessOutputStream,string]> |null
Defined in: packages/node/src/process/start-process.ts:40
Pre-subscribed before the child can write anything.
shell?
Section titled “shell?”
readonlyoptionalshell?:boolean|string|null
Defined in: packages/node/src/process/start-process.ts:15
Runs the command through a shell, so redirection and piping work and arguments are not escaped. Only ever pass a trusted command line.
signal?
Section titled “signal?”
readonlyoptionalsignal?:AbortSignal|null
Defined in: packages/node/src/process/start-process.ts:22
Aborting terminates the child.
stderr?
Section titled “stderr?”
readonlyoptionalstderr?:ProcessStdio|null
Defined in: packages/node/src/process/start-process.ts:31
Default "pipe".
stdout?
Section titled “stdout?”
readonlyoptionalstdout?:ProcessStdio|null
Defined in: packages/node/src/process/start-process.ts:28
Default "pipe", which is what output events are read from.