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

x/s3si/deps.ts>io.toWritableStream

Export your battles from SplatNet to https://stat.ink
Go to Latest
function io.toWritableStream
import { io } from "https://deno.land/x/s3si@gui-v0.4.16/deps.ts";
const { toWritableStream } = io;

Create a WritableStream from a Writer.

Examples

Example 1

import { toWritableStream } from "https://deno.land/std@0.224.0/io/to_writable_stream.ts";

const file = await Deno.open("./file.txt", { create: true, write: true });
await ReadableStream.from("Hello World")
  .pipeThrough(new TextEncoderStream())
  .pipeTo(toWritableStream(file));

Parameters

writer: Writer
optional
unnamed 1: toWritableStreamOptions = [UNSUPPORTED]