Skip to main content

ChildProcess

class Deno.ChildProcess
implements AsyncDisposable

The interface for handling a child process returned from Deno.Command.spawn.

Properties Jump to heading

readonly
Jump to headingpid: number

Get the status of the child.

readonly
Jump to headingstderr: ReadableStream<Uint8Array>
readonly
Jump to headingstdin: WritableStream<Uint8Array>
readonly
Jump to headingstdout: ReadableStream<Uint8Array>

Kills the process with given Deno.Signal.

Defaults to SIGTERM if no signal is provided.

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

Ensure that the status of the child process prevents the Deno process from exiting.

Ensure that the status of the child process does not block the Deno process from exiting.

Back to top