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

x/proc/src/api2/proc-readable-stream.ts>bytes

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

Convert text data into UTF8-encoded bytes.

Parameters

input: ReadableStream<string>

Text data, either chunked or as lines.

optional
options: { chunked?: boolean; }

Options.