{"id":20625378,"url":"https://github.com/insign/dart_dloader","last_synced_at":"2025-09-26T15:31:34.245Z","repository":{"id":65697482,"uuid":"595215063","full_name":"insign/dart_dloader","owner":"insign","description":"A simple and versatile library for downloading files with support for adapters including dio, curl, wget, powershell, aria2 and axel. Feel free to create new adapters.","archived":false,"fork":false,"pushed_at":"2023-11-20T09:53:03.000Z","size":48,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T13:09:22.846Z","etag":null,"topics":["dart","download","downloader"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/dloader","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/insign.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-30T16:25:37.000Z","updated_at":"2024-09-25T07:59:06.000Z","dependencies_parsed_at":"2023-11-20T10:56:31.024Z","dependency_job_id":null,"html_url":"https://github.com/insign/dart_dloader","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Fdart_dloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Fdart_dloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Fdart_dloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insign%2Fdart_dloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insign","download_url":"https://codeload.github.com/insign/dart_dloader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234319577,"owners_count":18813552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","download","downloader"],"created_at":"2024-11-16T13:09:26.126Z","updated_at":"2025-09-26T15:31:28.924Z","avatar_url":"https://github.com/insign.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"A simple and versatile library for downloading files with support for adapters including dio, curl, wget, powershell, aria2 and axel. Feel free to create new adapters.\n\n## Getting started\n\n```dart\ndart pub add dloader\n```\n## Usage\n\n```dart\nimport 'dart:io';\nimport 'package:dloader/dloader.dart';\n\nvoid main() {\n  final dloader = Dloader(CurlAdapter());\n\n  final url = 'https://example.com/file.zip';\n  final destination = File('/path/to/file.zip');\n\n  dloader\n      .download(\n          url: url,\n          destination: destination,\n          onProgress: (progress) {\n            print('Percent complete: ${progress['percentComplete']}%');\n            print('Bytes downloaded: ${progress['downloaded']}');\n            print('Bytes total size: ${progress['totalSize']}');\n            print('Speed: ${progress['speed']}');\n            print('Time remaining: ${progress['timeRemaining']}');\n          })\n      .then((File file) {\n    print('File downloaded to: ${file.path}');\n  }).catchError((e) {\n    print('Error downloading file: $e');\n  });\n}\n```\n\n## LICENSE\n\n[BSD 3-Clause License](./LICENSE)\n\n## CONTRIBUTE\nIf you have an idea for a new feature or have found a bug, just do a pull request (PR).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsign%2Fdart_dloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsign%2Fdart_dloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsign%2Fdart_dloader/lists"}