modal
    Preparing search index...

    Type Alias ExecOptions

    Options to configure a Sandbox.exec() operation.

    type ExecOptions = {
        mode?: StreamMode;
        stderr?: StdioBehavior;
        stdout?: StdioBehavior;
        timeout?: number;
        workdir?: string;
    }
    Index

    Properties

    mode?: StreamMode

    Specifies text or binary encoding for input and output streams.

    stderr?: StdioBehavior

    Whether to pipe or ignore standard error.

    stdout?: StdioBehavior

    Whether to pipe or ignore standard output.

    timeout?: number

    Timeout for the process in milliseconds. Defaults to 0 (no timeout).

    workdir?: string

    Working directory to run the command in.