Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/src/command.ts>Process#writeToStdin

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Very Popular
Go to Latest
method Process.prototype.writeToStdin
import { Process } from "https://deno.land/x/proc@0.20.9/src/command.ts";

This is the "backdoor" way to write directly to the underlying process stdin without the overhead of a WritableIterable. This replaces using this.stdin entirely.

Parameters

iter: AsyncIterable<
| Uint8Array
| Uint8Array[]
| string
| string[]
>

The data being passed to the underlying process stdin.