Properties
optional
cwd: string | URLThe working directory of the process. If not specified, the cwd of the parent process is used.
Clear environmental variables from parent process.
Doesn't guarantee that only opt.env
variables are present,
as the OS may set environmental variables for processes.
Sets the child process’s user ID. This translates to a setuid call in the child process. Failure in the setuid call will cause the spawn to fail.
optional
signal: AbortSignalAn AbortSignal that allows closing the process using the corresponding AbortController by sending the process a SIGTERM signal. Not supported in spawnSync.