mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 18:17:48 -05:00
11 lines
198 B
Text
11 lines
198 B
Text
|
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);
|
||
|
}
|