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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    9
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i node-axel

Weekly Downloads

6

Version

1.1.1

License

ISC

Last publish

Collaborators

  • sreevisakh