tarlatan
    Preparing search index...
    • Runs file with args (no shell) and calls back with its output once it ends. env is the child's entire environment; file is resolved on its PATH.

      Parameters

      • file: string
      • args: readonly string[]
      • options: {
            cwd: string;
            encoding: "utf8";
            env: Readonly<Record<string, string>>;
            maxBuffer?: number;
        }
        • Readonlycwd: string
        • Readonlyencoding: "utf8"
        • Readonlyenv: Readonly<Record<string, string>>
        • Optional ReadonlymaxBuffer?: number

          The most bytes of stdout or of stderr kept before the child is killed and an error reported; Node's default is 1 MiB.

      • callback: (error: ExecFileError | null, stdout: string, stderr: string) => void

      Returns unknown

    • execFile with stdout and stderr as raw bytes, undecoded, so the caller chooses how to decode them (review finding B17).

      Parameters

      • file: string
      • args: readonly string[]
      • options: { cwd: string; encoding: "buffer"; env: Readonly<Record<string, string>> }
      • callback: (error: ExecFileError | null, stdout: Uint8Array, stderr: Uint8Array) => void

      Returns unknown