• Run code.

    Parameters

    • cmd: string | {
          args: string[];
          cmd: string;
      }
    • code: string
    • Optionalopts: {
          signal?: AbortSignal;
          stream?: boolean;
      }
      • Optionalsignal?: AbortSignal
      • Optionalstream?: boolean

    Returns Promise<ReadableStreamDefaultReader>

    result

  • Parameters

    • cmd: string | {
          args: string[];
          cmd: string;
      }
    • code: string
    • Optionalopts: {
          signal?: AbortSignal;
          stream?: boolean;
      }
      • Optionalsignal?: AbortSignal
      • Optionalstream?: boolean

    Returns Promise<string>