Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faxes/fax-downloader
Download files from URLs with file-dl
https://github.com/faxes/fax-downloader
Last synced: 8 days ago
JSON representation
Download files from URLs with file-dl
- Host: GitHub
- URL: https://github.com/faxes/fax-downloader
- Owner: FAXES
- License: mit
- Created: 2022-03-01T06:50:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T03:17:47.000Z (about 1 year ago)
- Last Synced: 2024-10-30T13:14:04.692Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/fax-downloader
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# File Downloader
Download files from URLs and save to a defined location. Downloading file just got that little easier.
### Params
- url *(required)* - The file/image URL
- dest *(required)* - The destination from the node process location to save the file too.### Options (Object)
Other options can include those within HTTP.request - https://nodejs.org/api/http.html#httprequestoptions-callback### Example Usage
```js
let options = {
url: `http://your.domain`,
dest: `/save/location`,
}
faxDl.getFile(options.url, options.dest, /*{other: options}*/).then(function(fileResult) {
/*
fileResult = {
dest: `/save/location`,
status: 200,
error: `error`,
}
*/
});
```### License
Under the [MIT license](https://github.com/FAXES/filedl/blob/main/LICENSE.md)