1.1.1 • Published 8 years ago

node-axel v1.1.1

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

node-axel - a node.js axel client

This is a wrapper over axel

Install with:

npm install node-axel

Dependency

This require axel downloader for ubuntu install it with :

    sudo apt install axel

Usage Example

import Axel from 'node-axel';
    
let axelClient = new Axel();
    
axelEvents = axelClient.download(url)

axelEvents.on('progress',function(progress){
    console.log(progress);
})

// Speed : 20KB/s Progress : 20% Size: 123 

axelEvents.on('finish',function(){
    console.log('Download Finished');
})

axelEvents.on('error',function(error){
    console.log(error);
})

Options

maxspeed - specify maximum allowd speed in bytes per second

connections - no of connection to use while downloading

output - path of output file