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

x/deno/tools/release/deps.ts>dax.CommandBuilder#text

A modern runtime for JavaScript and TypeScript.
Latest
method dax.CommandBuilder.prototype.text
Re-export
import { dax } from "https://deno.land/x/deno@v1.41.0/tools/release/deps.ts";
const { CommandBuilder } = dax;

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$/, "");