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#text

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

Sets stdout as quiet, spawns the command, and gets stdout as a string without the last newline.

Shorthand for:

const data = (await $`command`.quiet("stdout")).stdout.replace(/\r?\n$/, "");

Returns

Promise<string>