Downloader is an efficient, multi-connection downloader written in Node.js. By downloading the same file over multiple connections, it can double or triple the speed for high latency users.
npm install --global sb-downloader
$ download https://www.my-storage-website.com/installer.deb
type Downloader$Job = {
url: string,
target: {
directory: string,
file?: ?string
},
connections: number
}
export function download(options: Downloader$Job): Download
export class Download {
activate(): Promise
onDidError(callback: Function)
onDidProgress(callback: Function)
onDidEstablishConnection(callback: Function)
onDidComplete(callback: Function)
dispose()
}
This module is licensed under the terms of MIT License. Check the LICENSE file for more info.