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

x/proc/mod3.ts>Enumerable#writeTo

A better way to work with processes in Deno.
Latest
method Enumerable.prototype.writeTo
Re-export
import { Enumerable } from "https://deno.land/x/proc@0.21.9/mod3.ts";

Write all data to the writer.

Example

Write some numbers to stdout.

range({to: 99})
  .map(n => n.toString())
  .transform(toBytes)
  .writeTo(Deno.stdout.writable, {noclose: true});

Parameters

writer: Writable<T> | WritableStream<T>

The writer.

optional
options: { noclose?: boolean; }

Returns

Promise<void>