Module

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

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
method CommandBuilder.prototype.bytes
import { CommandBuilder } from "https://dotland.deno.dev/x/dax@0.39.2/src/command.ts";

Sets stdout as quiet, spawns the command, and gets stdout as a Uint8Array.

Shorthand for:

const data = (await $`command`.quiet("stdout")).stdoutBytes;

Returns

Promise<Uint8Array>