Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.Child

class Child {
readonly pid: number;
readonly status: Promise<ChildStatus>;
get stdin(): WritableStream<Uint8Array>;
get stdout(): ReadableStream<Uint8Array>;
get stderr(): ReadableStream<Uint8Array>;
 
kill(signo?: Signal): void;
output(): Promise<SpawnOutput>;
ref(): void;
unref(): void;
}

§Properties

§
pid: number
[src]
§
status: Promise<ChildStatus>
[src]

Get the status of the child.

§
stdin: WritableStream<Uint8Array> readonly
[src]
§
stdout: ReadableStream<Uint8Array> readonly
[src]
§
stderr: ReadableStream<Uint8Array> readonly
[src]

§Methods

§
kill(signo?: Signal): void
[src]

Kills the process with given Signal. Defaults to SIGTERM.

§
output(): Promise<SpawnOutput>
[src]

Waits for the child to exit completely, returning all its output and status.

§
ref(): void
[src]
§
unref(): void
[src]