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

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

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

Pipes the current command to the provided command returning the provided command builder. When chaining, it's important to call this after you are done configuring the current command or else you will start modifying the provided command instead.

Examples

Example 1

const lineCount = await $`echo 1 && echo 2`
 .pipe($`wc -l`)
 .text();