spawn

abstract fun spawn(command: Value, args: Value?, options: Value?): ChildProcess

Spawn

Guest-side implementation of Node's spawn method, which is used to spawn a child process which is then returned to the caller and used in an event-driven manner.

Return

Child process handle which was spawned using the provided command, args, and options inputs.

Parameters

command

Command to execute.

args

Arguments to specify for the command.

options

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