Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
method Deno.Command.prototype.outputSync

Synchronously 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.