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

x/dtils/mod.ts>execCaptureIncremental

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

Executes segments as a child process. Incrementally calls options.onLogLine and options.onErrorLine for each new line written to the child's stdout an 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: ExecCaptureIncrementalOptions = [UNSUPPORTED]

Returns

Promise<void>