Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dax/src/command.ts>CommandBuilder#quiet

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method CommandBuilder.prototype.quiet
import { CommandBuilder } from "https://deno.land/x/dax@0.9.0/src/command.ts";

Ensures stdout and stderr are piped if they have the default behaviour or are inherited.

// ensure both stdout and stderr is not logged to the console
await $`echo 1`.quiet();
// ensure stdout is not logged to the console
await $`echo 1`.quiet("stdout");
// ensure stderr is not logged to the console
await $`echo 1`.quiet("stderr");

Parameters

optional
kind: "stdout" | "stderr" | "both" = [UNSUPPORTED]