- runCode(cmd, code, opts?): Promise<ReadableStreamDefaultReader>
Parameters
- cmd: string | {
args: string[];
cmd: string;
} - code: string
Optional
opts: {
signal?: AbortSignal;
stream?: boolean;
}Optional
signal?: AbortSignal
Optional
stream?: boolean
Returns Promise<ReadableStreamDefaultReader>
result
- runCode(cmd, code, opts?): Promise<string>
Parameters
- cmd: string | {
args: string[];
cmd: string;
} - code: string
Optional
opts: {
signal?: AbortSignal;
stream?: boolean;
}Optional
signal?: AbortSignal
Optional
stream?: boolean
Returns Promise<string>
Run code.