deno-readline

Readline implementation for https://deno.land/.

Usage

import { readline } from "https://deno.land/x/readline/mod.ts";

const f = await Deno.open("./example.ts");
for await (const line of readline(f)) {
  console.log(`line: ${new TextDecoder().decode(line)}`);
}
f.close();