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

x/s3si/deps.ts>io.readLines

Export your battles from SplatNet to https://stat.ink
Latest
function io.readLines
Deprecated
Deprecated

(will be removed after 1.0.0) Use the [Web Streams API]https://developer.mozilla.org/en-US/docs/Web/API/Streams_API instead.

import { io } from "https://deno.land/x/s3si@gui-v0.4.20/deps.ts";
const { readLines } = io;

Read strings line-by-line from a Reader.

Examples

Example 1

import { readLines } from "https://deno.land/std@0.224.0/io/read_lines.ts";
import * as path from "https://deno.land/std@0.224.0/path/mod.ts";

const filename = path.join(Deno.cwd(), "std/io/README.md");
let fileReader = await Deno.open(filename);

for await (let line of readLines(fileReader)) {
  console.log(line);
}

Parameters

reader: Reader
optional
decoderOpts: { encoding?: string; fatal?: boolean; ignoreBOM?: boolean; }

Returns

AsyncIterableIterator<string>