Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dax/mod.ts>CommandBuilder#quiet

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
method CommandBuilder.prototype.quiet
Re-export
import { CommandBuilder } from "https://deno.land/x/dax@0.39.2/mod.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]