default

Run child processes and work with async iterables in Deno—with the fluent Array API you already know.

f
buffer

Transformer that conditionally adds buffering to a Uint8Array stream.

T
ByteSink

Conditional type for Enumerable.toStdout.

f
cache

Fetch and cache expensive computations using Deno KV.

T
ChunkedLines

Conditional type for Enumerable.chunkedLines.

T
Cmd

Command signature: program name/path followed by arguments.

f
concat

Fast-concatenate Uint8Array arrays into a single array.

f
concatLines

Fast-concatenate Uint8Arrays arrays together, adding a trailing line feed, returning a single array containing the result.

I
ConcurrentOptions

Options for Enumerable.concurrentMap and Enumerable.concurrentUnorderedMap.

v
DAYS

The number of milliseconds in a day.

f
debug

Debug output using console.dir through Enumerable#transform.

f
enumerate

Create an Enumerable from any iterable or async iterable.

T
ErrorHandler

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).

c
ExitCodeError

Thrown because the process returned an exit code that indicates an error occurred. By default, this indicates a non-zero exit code but may be overridden.

f
fetchRecord

Fetch a record from KV. Use cache instead; exported for debugging.

f
gunzip

Decompress gzip-compressed data.

f
gzip

Compress data using gzip.

v
HOURS

The number of milliseconds in an hour.

f
isString

Type guard to check if a value is a string.

f
jsonParse

Parse JSON-encoded strings into objects.

f
jsonStringify

Convert objects to JSON-encoded strings (one per line).

T
Lines

Conditional type for Enumerable.lines.

v
MINUTES

The number of milliseconds in a minute.

T
PipeKinds

Pipe kinds, matching Deno.Command.

c
Process

Wrapper for Deno.ChildProcess with enhanced error handling and stream management.

c
ProcessEnumerable

Enumerable for process output with additional process-specific properties.

c
ProcessError

A generic process error.

I
ProcessOptions

Options passed to a process.

f
range

Lazily generate a range of numbers as an AsyncIterable.

I
RangeToOptions

Options for a to range. The to range is exclusive.

I
RangeUntilOptions

Options for an until range. The until value is inclusive.

f
read

Open a file for reading as an AsyncIterable of byte chunks.

T
Run

Conditional type for Enumerable.run.

f
run

Run a child process with a fluent, composable API.

v
SECONDS

The number of milliseconds in a second.

f
shuffle

Performs an in-place shuffle of an array in linear time.

c
SignalError

Thrown because the process exited due to a signal. By default, this is thrown for any signal but may be overridden.

f
sleep

The sleep function is used to pause the execution of the program for a specified amount of time. It returns a Promise that resolves after a set number of milliseconds, effectively causing a delay in the execution of the subsequent code.

T
StandardData

Standard data, either string, arrays of strings (lines), byte data, or arrays of byte data.

T
StderrHandler

Optionally handle lines of stderr (passed as text lines), and also optionally return a value that is passed to your custom ErrorHandler. You are not allowed to throw an error from this function. If you wish to throw an error based on stderr data, the ErrorHandler function is where you do that.

f
toBufferSource

For transformers that need BufferSource as input, this will convert the type of the output; otherwise identical to toBytes.

f
toByteLines

Convert an AsyncIterable<Uint8Array> into an AsyncIterable<Uint8Array[]> (an array of lines chunked together based on buffer size) split on lf and also suppressing trailing cr.

f
toBytes

Convert strings, string arrays, or byte arrays to Uint8Array chunks.

f
toChunkedLines

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

f
toLines

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

f
transformerFromTransformStream

Convert a TransformStream into a TransformerFunction. Errors occurring upstream are correctly propagated through the transformation.

T
TransformerFunction

Type signature of a transformer.

T
TransformStream

Type alias for TransformStream used in Enumerable.transform.

T
Unzip

Conditional type for Enumerable.unzip.

c
UpstreamError

Thrown to indicate an error occurred upstream and is being passed forward.

v
WEEKS

The number of milliseconds in a week.

I
Writable

Simplified writable.

c
WritableIterable

Invert data flow: push writes on one side, iterate on the other.

f
writeAll

Low level write without locking, writing in multiple chunks if needed.