Skip to main content
Module

x/proc/mod.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.19.12/mod.ts";

Classes

Wrapper for a Deno process that ensures it is only closed once, even though we may try to close it multiple times.

Wrapper for a Reader & Closer that allows you to safely call close() multiple times.

Wrapper for a Writer & Closer that allows you to safely call close() multiple times.

A Reader/Closer that suppresses the close() method on the underlying reader.

The standard error that is thrown when a process exits with a non-0 exit code.

Invert the normal data flow of an AsyncIterable, allowing you to push writes on one side and iterate on the other.

Functions

A handler for AsyncIterable<Uint8Array> input.

A hander for AsyncIterable<Uint8Array> output.

A handler for AsyncIterable<Uint8Array> input, unbuffered.

A hander for AsyncIterable<Uint8Array> output, unbuffered.

A handler for Uint8Array input.

A hander for Uint8Array output.

Convert an AsyncIterable<Uint8Array> into an AsyncIterable<string> of lines.

A hander for void input.

Dump stdout to the stdout of the parent process, unbuffered.

Create a new Group for running processes.

Handler for Deno.Reader input.

Efficiently transform a Reader to an AsyncIterableIterator<Uint8Array>.

Transform a Reader to an AsyncIterableIterator<Uint8Array>, unbuffered. This will read bytes as soon as they are available.

Handler for Deno.Reader input, unbuffered.

Define a reusable process runner.

Sleep for a while.

Write stderr lines to console.error().

Write stderr lines to the error message, if the process fails; otherwise, stderr is suppressed.

Ignore stderr.

Redirects stderr into stdout so that you get both, as lines, for output.

A handler for string[] input.

A hander for string[] output.

A handler for AsyncIterable<string> input.

A hander for AsyncIterable<string> output.

A handler for AsyncIterable<string> input, unbuffered.

A hander for AsyncIterable<string> output, unbuffered.

A handler for string input.

A hander for string output.

Interfaces

A process group.

The interface of an input handler.

The interface of an output handler.

Command options.

Type Aliases

Something that is either a promise or an iterable.

A processor for stderr.