Closed ProphetDaniel closed 6 years ago
This is reported in download-status at https://github.com/kevva/download-status/issues/13
In that thread, there is even a workaround suggested: https://github.com/kevva/download/issues/106#issuecomment-243071351
@motin Great, it worked perfectly for me: As I was also in need of decompression I changed a bit.
const bar = new ProgressBar('[:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 20,
total: 0
});
download(selectedDownload.url, 'downloads', {extract: true, strip: 1})
.on('response', res => {
bar.total = res.headers['content-length'];
res.on('data', data => bar.tick(data.length));
})
.then(() => {
});
and package.json