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

x/proc/legacy/examples/deps.ts

A better way to work with processes in Deno.
Go to Latest
import * as proc from "https://deno.land/x/proc@0.21.3/legacy/examples/deps.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.

Simplified writable.

Type Aliases

Something that is either a promise or an iterable.

A processor for stderr.