Skip to main content

Module child_process

Module child_process 

Source
Expand description

Bindings to the Node.js child_process module for spawning child processes.

Structs§

ChildProcess
Handle to a spawned child process (Node.js ChildProcess), an EventEmitter exposing its streams and lifecycle.
Cp
Binding to the Node.js child_process module, used to spawn child processes.
SpawnArgs
JavaScript array of command-line arguments passed to a spawned process.
SpawnOptions
JavaScript options object (cwd, env, stdio, …) for spawning a process.

Enums§

KillSignal
Signal to send to a child process when terminating it via ChildProcess::kill_with_signal.

Functions§

spawn
Spawns a new child process running cmd with no arguments, returning a handle to the resulting ChildProcess.
spawn_with_args
Spawns a new child process running cmd with the given args, returning a handle to the resulting ChildProcess.
spawn_with_args_and_options
Spawns a new child process running cmd with the given args and options, returning a handle to the resulting ChildProcess.