@karmaniverous/get-dotenv
    Preparing search index...

    Function runCommandResult

    Execute a command and capture stdout/stderr (buffered).

    Command string (shell) or argv array (shell-off supported).

    Shell setting: false for plain execution, true for the OS default shell (powershell.exe on Windows, /bin/bash elsewhere), or a shell path. An argv array is quoted for that shell.

    Execution options (cwd/env/timeout).

    A promise resolving to the captured result.

    • Execute a command and capture stdout/stderr (buffered).

      • Preserves plain vs shell behavior and argv/string normalization.
      • Never re-emits stdout/stderr to parent; returns captured buffers.
      • Supports optional timeout (ms).

      Parameters

      Returns Promise<RunCommandResult>

    • Execute a command and capture stdout/stderr (buffered).

      Parameters

      • command: string | readonly string[]

        Command string (shell) or argv array (shell-off supported).

      • shell: string | boolean | URL

        Shell setting: false for plain execution, true for the OS default shell (powershell.exe on Windows, /bin/bash elsewhere), or a shell path. An argv array is quoted for that shell.

      • Optionalopts: RunCommandResultOptions

        Execution options (cwd/env/timeout).

      Returns Promise<RunCommandResult>

      A promise resolving to the captured result.