1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests/specs/node/readline_promises/main.out

11 lines
198 B
Text
Raw Permalink Normal View History

import rl from "node:readline/promises";
import fs from "node:fs";
const r = rl.createInterface({
input: fs.createReadStream("main.ts"),
});
for await (const line of r) {
console.log(line);
}