spawnSync

abstract fun spawnSync(command: Value, args: Value?, options: Value?): ChildProcessSync

Spawn (Synchronous)

Guest-side implementation of Node's spawnSync method, which is used to synchronously spawn a child process by a specified command name, argument set, and options (if applicable).

Return

ChildProcessSync instance representing the spawned child process.

Parameters

command

Command to execute.

args

Arguments to specify for the command.

options

Options for the process execution, or null (undefined in JavaScript).