axel-downloader
A node.js wrapper around axel downloader.
Installation
- Install Axel.
macOS
brew install axel
Ubuntu
sudo apt install axel
- Install
axel-downloader
fromnpm
:
yarn add axel-downloader# or npm i axel-downloader -S
Usage
; const url = 'http://somewhere-something.xyz/some-file.abc';const downloadPath = '/home/username/Downloads'; // OPTIONALconst options = connections: 32 maxSpeed: 6000 // KB userAgent: 'Axel Bot' headers: key: 'token' value: 'n0tS0f3' ; // OPTIONAL const download = url downloadPath options;download;download;download;download;download;downloadstart;
Download
class inherits from EventEmitter. You can listen on it for start
, progress
, error
, finish
, stop
events.
More details will be added.
Tests
yarn test# or npm test
Ideas || Issues
Just create an issue and describe it. I'll check it ASAP!
Contribution
You can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. ❤️
Remember to write a few tests if you can. 🔧
License
Licensed under the MIT License.