Enumeration of possible stdio behaviours.

Variables

@:value(cast "ignore")@:enum@:implinlineread onlyIgnore:ChildProcessSpawnOptionsStdioBehaviour = "ignore"

Do not set this file descriptor in the child. Note that Node will always open fd 0 - 2 for the processes it spawns. When any of these is ignored node will open /dev/null and attach it to the child's fd.

@:value(cast "ipc")@:enum@:implinlineread onlyIpc:ChildProcessSpawnOptionsStdioBehaviour = "ipc"

Create an IPC channel for passing messages/file descriptors between parent and child. A ChildProcess may have at most one IPC stdio file descriptor.

Setting this option enables the ChildProcess.send() method.

If the child writes JSON messages to this file descriptor, then this will trigger ChildProcess.on('message').

If the child is a Node.js program, then the presence of an IPC channel will enable process.send() and process.on('message').

@:value(cast "pipe")@:enum@:implinlineread onlyPipe:ChildProcessSpawnOptionsStdioBehaviour = "pipe"

Create a pipe between the child process and the parent process. The parent end of the pipe is exposed to the parent as a property on the child_process object as ChildProcess.stdio[fd]. Pipes created for fds 0 - 2 are also available as ChildProcess.stdin, ChildProcess.stdout and ChildProcess.stderr, respectively.