toWritableStream
import { toWritableStream } from "jsr:@ende/io";function
function toWritableStream(writer: Writer, options?: toWritableStreamOptions): WritableStream<Uint8Array>Create a WritableStream from a Writer.
writer: WriterThe writer to write to
options?: toWritableStreamOptionsThe options
Returns
The writable stream
Example: Usage
import { toWritableStream } from "@ende/io/to-writable-stream";
const a = toWritableStream(Ende.stdout); // Same as `Ende.stdout.writable`