nodejs download module, support multi-threaded segmented download, breakpoint renewal.
download(urlList, dir[, headers, retryCount])
Example:
const download = require('./src/download')
download([
'http://172.31.1.235:3001/file_1.zip',
'http://172.31.1.235:3001/file_2.exe',
'http://172.31.1.235:3001/file_3.exe'
], './download').then(successList => {
console.log('download success: ', successList)
})
Array of files to download
Download directory, Default value: './download'
Header information of network request
Number of retries after download failure