node-axel

1.1.1 • Public • Published

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

Package Sidebar

Install

npm i node-axel

Weekly Downloads

15

Version

1.1.1

License

ISC

Last publish

Collaborators

  • sreevisakh