Skip to content

Missing readLines() method on FileHandle in Deno's node:fs/promises module #31104

@kevgeoleo

Description

@kevgeoleo

Version: Deno 2.5.4

Hi,
I would like to report a behavior that I observed in Deno when running the following code snippet:

import { open } from "node:fs/promises";
const fs = await open("file.txt", "r");
fs.readLines().on("line", (data) => {})

Create a file named file.txt with some random content and execute the snippet in Deno.
This module is implemented in Node but I get the following error when I run the code in Deno:

PS D:\HIWI\RESULTS\25_10_2025> deno run -A .\a.js
error: Uncaught (in promise) TypeError: fs.readLines is not a function
fs.readLines().on("line", (data) => {})
   ^
    at file:///D:/HIWI/RESULTS/25_10_2025/a.js:8:4

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions