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

x/proc/src/transformers.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.17/src/transformers.ts";

Functions

Transformer that conditionally forces buffering of a Uint8Array stream.

Convert JSON-encoded lines into objects.

Convert objects into JSON.

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. lf and trailing cr is removed from the returned lines.

Converts specific types to Uint8Array chunks.

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

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