ChildProcessAPI

Node API: Child Process

Describes the API made available for support of the child_process module from the Node API; this API can be used to launch and control child processes from a given application.

Functions

Link copied to clipboard
abstract fun exec(command: Value, options: Value?, callback: Value?): ChildProcess

Guest-side implementation of Node's exec method, which is used to execute commands via child processes using a shell.

Link copied to clipboard
abstract fun execFile(file: Value, args: Value?, options: Value?, callback: Value?): ChildProcess

Guest-side implementation of Node's execFile method, which is used to execute commands via child processes using a shell and a specific file.

Link copied to clipboard
abstract fun execFileSync(file: Value, args: Value?, options: Value?): StringOrBuffer?

Guest-side implementation of Node's execSync method, which is used to synchronously spawn a child process, potentially with options specified.

Link copied to clipboard
abstract fun execSync(command: Value, options: Value?): StringOrBuffer?

Guest-side implementation of Node's execSync method, which is used to synchronously spawn a child process, potentially with options specified.

Link copied to clipboard
abstract fun fork(modulePath: Value, args: Value?, options: Value?): ChildProcess

Specialized version of the spawn method which is designed to "fork" the currently running copy of Elide, with a new modulePath as the entrypoint.

Link copied to clipboard
abstract fun spawn(command: Value, args: Value?, options: Value?): ChildProcess

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.

Link copied to clipboard
abstract fun spawnSync(command: Value, args: Value?, options: Value?): ChildProcessSync

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).