Skip to content

Feature request: fs.ReadStream#bytesRead #7938

@LinusU

Description

@LinusU

I would like to propose the addition of fs.ReadStream.prototype.bytesRead which should represent the number of bytes read from the file.

It seems like it's "missing" since fs.WriteStream has bytesWritten and net.Socket has both bytesRead and bytesWritten.

Implementation should be very trivial, I would be happy to submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions