Deno.Command.prototype.output - Deno documentation
method Deno.Command.prototype.output
Command.prototype.output(): Promise<CommandOutput>

Executes the Deno.Command, waiting for it to finish and collecting all of its output.

Will throw an error if stdin: "piped" is set.

If options stdout or stderr are not set to "piped", accessing the corresponding field on Deno.CommandOutput will throw a TypeError.

Return Type

Promise<CommandOutput>