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

x/proc/src/command.ts

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
import * as proc from "https://deno.land/x/proc@0.20.10/src/command.ts";

Classes

A factory for [[Process]].

A wrapper for Deno.ChildProcess that converts streams to AsyncIterable<...>, corrects error handling, and adds other custom stuff.

c
ProcessError
abstract

Interfaces

Options passed to a process.

Command options.

Type Aliases

Optionally change or suppress the error before it is thrown. Note that this will only be called if either one or both of error and stderrData is defined (non-null).

Optionally handle lines of stderr (passed as arrays of lines as available), and also optionally return a value that is passed to your custom ErrorHandler. This function may not throw an error. If you wish to throw an error based on stderr data, the ErrorHandler function is where you do that.