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

x/s3si/deps.ts>io.readAll

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

Read Reader r until EOF (null) and resolve to the content as Uint8Array.

Examples

Example 1

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

// Example from stdin
const stdinContent = await readAll(Deno.stdin);

// Example from file
using file = await Deno.open("my_file.txt", {read: true});
const myFileContent = await readAll(file);

Returns

Promise<Uint8Array>