Necessary Pigeonholing Mechanism
Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i node-axel

DownloadsWeekly Downloads

2

Version

1.1.1

License

ISC

Last publish

Collaborators

  • avatar