Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.Command#output

A JavaScript extension package for building strong and modern applications.
Latest
method Deno.Command.prototype.output
import { Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { Command } = Deno;

Executes the Deno.Command, waiting for it to finish and collecting all of its output. If spawn() was called, calling this function will collect the remaining 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.