mise API - v0.0.0
    Preparing search index...

    Function segment_pipeThrough

    • Pipes an input buffer through a spawned shell command and captures its stdout.

      Writes the input to the child's stdin with drain-aware backpressure handling, tolerates early-close EPIPE, and rejects on non-zero exit or spawn error.

      Parameters

      • segment: string

        The shell command to run (executed with shell: true).

      • input: Buffer

        The data to write to the command's stdin.

      Returns Promise<Buffer<ArrayBufferLike>>

      The command's captured stdout.