-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
Feature request: fs.ReadStream#bytesRead #7938
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I would like to propose the addition of
fs.ReadStream.prototype.bytesReadwhich should represent the number of bytes read from the file.It seems like it's "missing" since
fs.WriteStreamhasbytesWrittenandnet.Sockethas bothbytesReadandbytesWritten.Implementation should be very trivial, I would be happy to submit a pull request.