turbo-downloader
Fastest file downloader for Node.js
Features:
- Download using multiple connections
- Aborting
- Resuming after application restart
- Smart retry on fail
- Supports http/https
- Supports http redirects
- Usable on vanilla nodejs, electron, nwjs
- TypeScript typings
Install
$ npm install --save turbo-downloader
Usage
import TurboDownloader from 'turbo-downloader';
const downloader = new TurboDownloader({
url: 'https://example.com/my_file',
destFile: '/some/path/to/save',
chunkSize: 4096,
concurrency: 8,
retryCount: 10,
canBeResumed: true
});
await downloader.download((downloaded, total) =>{
console.log(`Downloaded ${downloaded} of ${total}`);
});
downloader.abort(true );