GitShow/sindresorhus/electron-dl
sindresorhus

electron-dl

Simplified file downloads for your Electron app

by sindresorhus
Star on GitHubForknpm

JavaScript

1.2k stars136 forks33 contributorsQuiet · 9mo agoSince 2015v4.0.0MIT

Meet the team

See all 33 on GitHub →
sindresorhus
sindresorhus69 contributions
mquevill
mquevill4 contributions
dated
dated2 contributions
jrainlau
jrainlau2 contributions
papb
papb2 contributions
sondremare
sondremare2 contributions
limebell
limebell1 contribution
Dcai169
Dcai1691 contribution

Languages

View on GitHub →
JavaScript93.4%
HTML6.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 9mo ago
See all on GitHub →
sindresorhus
Help wantedOpenIssue

This package has gotten very popular. Unfortunately, I don't have that much time to maintain it anymore. I made it for my personal need of automatically handling downloads in my apps using the API. Later on, someone submitted to be able to handle individual downloads, and this is the API that many now depend on, but I don't use it myself. The first task would be to upgrade the and dev dependencies and fix the tests. Next would be to help get https://github.com/sindresorhus/electron-dl/pull/65 merged. I could also need help triaging issues.

sindresorhus · 3mo ago
ilux251
Support automatic resumption of interrupted downloadsOpenIssue

Currently, electron-dl does not automatically resume interrupted downloads, even when returns . The case where a download is interrupted is currently not handled at all in the event. This can lead to failed downloads, especially on Windows. With PR #173, I try to solve this problem with: Automatically calling if possible A configurable (default: 60) Aborting if the limit is reached without success

ilux251 · 12mo ago
hajeonghun
Overwrite Option is flase. but, the same file name is specified in the directory, it is overwritten.OpenIssue

The overwrite option was false and the file option was used. If the file name is the same, it will continue to be overwritten with one file. ex. filename : "a" The motion I want: "a", "a(1)" Current motion: "a"

hajeonghun · 1y ago

Recent fixes

View closed PRs →
ilux251
Support automatic resumption of interrupted downloadsMergedPR

Support automatic resumption of interrupted downloads Summary This pull request improves the handling of the download state in . Currently, when a download is interrupted and the event is emitted, there is no automatic attempt to resume the download. This PR includes: Automatic resumption of interrupted downloads if returns true. A configurable retry limit using the parameter (default: 60 attempts). Abort handling if the retry limit is reached without a successful resume. Motivation According to the official Electron documentation, interrupted downloads can typically be resumed within the event by using . There was a previous attempt to address this in PR #71, but it was not merged at the time. Without this improvement, interrupted downloads may fail permanently (only on Windows) even if they are resumable. This PR improves download stability by automatically retrying interrupted downloads that can be resumed, helping to recover from temporary network problems. Example Usage ```js download(view, "https://google.com", { retryLimit: 60 // Optional, default is 60 });

ilux251 · 7mo ago
Salketer
Update index.d.ts to loosen type restriction on downloadMergedPR

Electron has recently WebContentsView which is not included in the types expected by download. Since download only uses the webContents property, I suggest we loosen the type to anything that has that property. This would make it useful for anything that gets added in the futur too.

Salketer · 7mo ago
staniel359
Electron 30 supportClosedIssue

Hello. Recently Electron API has changed, deprecating BrowserView and introducing WebContentsView instead. But it can be used only with BaseWindow instead of BrowserWindow. And now gives me an error: !image Are you planning to add Electron 30 compatibility?

staniel359 · 1y ago
Structured data for AI agents

Repository: sindresorhus/electron-dl. Description: Simplified file downloads for your Electron app Stars: 1208, Forks: 136. Primary language: JavaScript. Languages: JavaScript (93.4%), HTML (6.6%). License: MIT. Latest release: v4.0.0 (2y ago). Open PRs: 1, open issues: 54. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, mquevill, dated, jrainlau, papb, sondremare, limebell, Dcai169, deependrax, BendingBender and others.

·@ofershap

Replace github.com with gitshow.dev