Skip to main content
Module

x/proc/mod3.ts>textEncoder

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function textEncoder
import { textEncoder } from "https://deno.land/x/proc@0.20.24/mod3.ts";

Convert (non line-delimited) text into utf-8 encoded bytes.

Wraps TextEncoderStream.

Returns

(chunks: AsyncIterable<string>) => AsyncIterable<Uint8Array>

A transformer.