Skip to main content
Module

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

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