mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 03:48:02 -05:00
50fa4d7ef5
Closes #24768
10 lines
198 B
TypeScript
10 lines
198 B
TypeScript
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);
|
|
}
|