Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Cross platform shell tools for Deno inspired by zx.
Extremely Popular
Go to Latest
method CommandBuilder.prototype.bytes
import { CommandBuilder } from "https://deno.land/x/dax@0.24.0/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;