Skip to content

Feature request: fs.ReadStream#bytesRead #7938

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 requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions