tarlatan
    Preparing search index...

    A child started by spawn. Only the members tarlatan uses are declared; kill is deliberately absent.

    interface ChildProcess {
        pid: number | undefined;
        stderr: ChildOutput;
        stdout: ChildOutput;
        on(event: "spawn", listener: () => void): unknown;
        on(event: "error", listener: (error: { message: string }) => void): unknown;
        on(
            event: "close",
            listener: (code: number | null, signal: string | null) => void,
        ): unknown;
    }
    Index
    pid: number | undefined

    The child's pid; undefined when it could not be started.

    stderr: ChildOutput

    The child's stderr, piped.

    stdout: ChildOutput

    The child's stdout, piped.

    • Emitted once the child has started.

      Parameters

      • event: "spawn"
      • listener: () => void

      Returns unknown

    • Emitted when the child could not be started, such as ENOENT for the file or the directory.

      Parameters

      • event: "error"
      • listener: (error: { message: string }) => void

      Returns unknown

    • Emitted after the child has ended and its stdout and stderr have closed: the exit code, or null and the name of the signal that ended it.

      Parameters

      • event: "close"
      • listener: (code: number | null, signal: string | null) => void

      Returns unknown