Polyman Documentation - v3.1.0
    Preparing search index...

    Function runOnInput

    • Runs a binary with input on stdin and args on the command line. Returns its stdout and the time it took, or an error for a timeout, a crash or a non-zero exit code.

      Parameters

      • binary: string
      • input: string
      • timeoutMs: number = 5000
      • Optionalsignal: AbortSignal
      • args: string[] = []

      Returns Promise<RunOutput>