Home > @rushstack/node-core-library > IExecutableSpawnSyncOptions
IExecutableSpawnSyncOptions interface
Options for Executable.spawnSync()
Signature:
export interface IExecutableSpawnSyncOptions extends IExecutableResolveOptions
Extends: IExecutableResolveOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
currentWorkingDirectory? | string | (Optional) The current working directory. If omitted, process.cwd() will be used. (Inherited from IExecutableResolveOptions) | |
environment? | NodeJS.ProcessEnv | (Optional) The environment variables for the child process. (Inherited from IExecutableResolveOptions) | |
environmentMap? | EnvironmentMap | (Optional) The environment variables for the child process. (Inherited from IExecutableResolveOptions) | |
input? | string | (Optional) The content to be passed to the child process's stdin. NOTE: If specified, this content replaces any IExecutableSpawnSyncOptions.stdio[0] mapping for stdin. | |
maxBuffer? | number | (Optional) The largest amount of bytes allowed on stdout or stderr for this synchronous operation. If exceeded, the child process will be terminated. The default is 200 * 1024. | |
stdio? | ExecutableStdioMapping | (Optional) The stdio mappings for the child process. NOTE: If IExecutableSpawnSyncOptions.input is provided, it will take precedence over the stdin mapping (stdio[0]). | |
timeoutMs? | number | (Optional) The maximum time the process is allowed to run before it will be terminated. |