-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide access to receivedBytes and totalBytes #31
Comments
Sure. Let's just make it a breaking change and include the percentage in the object too and make it the first argument. Pull request welcome :) |
Cool. Yes to |
Yes, but with more verbose names. |
Ok, might make the download stats stuff a separate module and reuse that. Sound ok? |
Sure |
Started on this and created a lib for it: https://github.com/DaveJ/transfer-stats Any thoughts on testing this within the context of electron-dl? |
For
You could do mostly something like this test: Line 25 in c7cf282
|
Thanks. The problem I've found with that test is that |
@davej Yeah, that should be fine. |
Perhaps in the
onProgress
handler? It could receive a second parameter with a details object. The signature could look something like this:Further expanding on this idea, it could also include useful info like
eta
(estimated time remaining in milliseconds) andbps
(current bytes per second). These would be handy but are less important as they can be calculated outside of the module usingreceivedBytes
,totalBytes
and asetTimeout
.The text was updated successfully, but these errors were encountered: