{"id":15470629,"url":"https://github.com/mborne/node-dl","last_synced_at":"2026-01-07T18:40:58.500Z","repository":{"id":71407497,"uuid":"189892712","full_name":"mborne/node-dl","owner":"mborne","description":"Download file from a given sourceUrl to a targetPath with wget","archived":false,"fork":false,"pushed_at":"2024-06-11T05:05:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T11:49:26.975Z","etag":null,"topics":["download","ftp","http","https","nodejs","wget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mborne.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-02T20:35:54.000Z","updated_at":"2024-06-11T05:05:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c170de7c-3354-4f2e-ba06-edf2feb66ea0","html_url":"https://github.com/mborne/node-dl","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.3076923076923077,"last_synced_commit":"fc30b051126c5181c055e384201d0e6066313a22"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborne%2Fnode-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborne%2Fnode-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborne%2Fnode-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mborne%2Fnode-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mborne","download_url":"https://codeload.github.com/mborne/node-dl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379385,"owners_count":20767696,"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":["download","ftp","http","https","nodejs","wget"],"created_at":"2024-10-02T02:05:56.191Z","updated_at":"2026-01-07T18:40:58.470Z","avatar_url":"https://github.com/mborne.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-dl\n\n[![Node.js CI](https://github.com/mborne/node-dl/actions/workflows/node.js.yml/badge.svg)](https://github.com/mborne/node-dl/actions/workflows/node.js.yml) [![Coverage Status](https://coveralls.io/repos/github/mborne/node-dl/badge.svg?branch=master\u0026kill_cache=1)](https://coveralls.io/github/mborne/node-dl?branch=master)\n\nDownload file from a given `sourceUrl` to a `targetPath` with `wget`.\n\n## Usage\n\n```js\nconst download = require('@mborne/dl');\n\n/*\n * Note that a temp file `{targetPath}.part` is created while downloading to handle download interuptions\n */\nconst targetPath = await download({\n    sourceUrl: 'https://github.com/mborne.keys',\n    targetPath: '/tmp/mborne.keys'\n});\n```\n\n## Options\n\n| Name               | Required? | Description                         | Default |\n| ------------------ | :-------: | ----------------------------------- | :-----: |\n| `sourceUrl`        |    YES    | Source URL (http, https, ftp)       |   NA    |\n| `targetPath`       |    YES    | Input encoding (UTF-8, LATIN1,...)  |   NA    |\n| `downloadIfExists` |    NO     | Download file if targetPath exists? | `true`  |\n| `unsafeSsl`        |    NO     | Disable certificate checking        | `false` |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmborne%2Fnode-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmborne%2Fnode-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmborne%2Fnode-dl/lists"}