Skip to main content
Module

x/dtils/mod.unstable.ts>execCapture

The best unofficial library of utilities for Deno applications
Go to Latest
function execCapture
import { execCapture } from "https://deno.land/x/dtils@2.0.0/mod.unstable.ts";

Executes segments as a child process. Returns errorLines and logLines containing all the lines written to the child's stdout and stderr, respectively. Throws if the child exits with a non-zero status.

Parameters

segments: string[]

The segments to execute. The first should be the file, the rest will be passed as arguments

optional
options: ExecOptions = [UNSUPPORTED]