Module

x/dax/src/command.ts>CommandResult

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

Result of running a command.

Constructors

new
CommandResult(
code: number,
stdout: BufferStdio,
stderr: BufferStdio,
combined: Buffer | undefined,
)

Properties

readonly
code: number

The exit code.

readonly
combined: string

Raw combined stdout and stderr text.

readonly
combinedBytes: Uint8Array

Raw combined stdout and stderr bytes.

readonly
stderr: string

Raw decoded stdout text.

readonly
stderrBytes: Uint8Array

Raw stderr bytes.

readonly
stderrJson: any

Stderr text as JSON.

readonly
stdout: string

Raw decoded stdout text.

readonly
stdoutBytes: Uint8Array

Raw stdout bytes.

readonly
stdoutJson: any

Stdout text as JSON.