Skip to content

spawn

spawn(parent, path, argv?, env?, init?): Promise<Process>

Defined in: src/fs/exec.ts:164

Fork a child of parent and run a program in it. This comes back with the child, which is still running; parent.wait(child.pid) reaps it.

Process

string

string[] = ...

Record<string, string> = parent.env

ProcessInit = {}

Promise<Process>