|
|
@ -13,6 +13,11 @@ emitter.on('download.start', ({ url, filepath }) => { |
|
|
|
log('download.start', `Downloading to ${filepath}`); |
|
|
|
}); |
|
|
|
|
|
|
|
// Create a new listener for the download.start event
|
|
|
|
emitter.on('download.started', ({ url, filepath, length }) => { |
|
|
|
log('download.started', `Downloading to ${filepath} and length is ${length}`); |
|
|
|
}); |
|
|
|
|
|
|
|
// Create a new listener for the download.end event
|
|
|
|
emitter.on('download.end', ({ url, filepath }) => { |
|
|
|
log('download.end', `Downloaded to ${filepath}`); |
|
|
|