Skip to content

Latest commit

 

History

History
54 lines (51 loc) · 1.06 KB

README.md

File metadata and controls

54 lines (51 loc) · 1.06 KB

hydr

🐲 download files faster using multiple http requests, just like hydra!

installation

cli

install globally from npm registery

npm install -g hydr

or clone this repository & build manually

git clone https://github.com/maythiwat/hydr.git
cd hydr
npm run build .
npm install -g . 

module

to use this module in your project

npm install hydr
# or: yarn add hydr

usage

cli

  • help (--help) - show help
hydr --help
  • version (--version) - show version number
hydr --version
  • chunks (-c, --chunks) - number of split chunks
hydr -c <number of chunk>
  • delay (-d, --delay) - add delay per chunks (in ms) [default = 100]
hydr -d <time in ms>
  • timeout (-t, --timeout) - timeout per chunks download (in ms, 0 = forever) [default = 0]
hydr -t <time in ms>
  • retry (-r, --retry) - max retries on chunks download timeout
hydr -r <amount>
  • outFile (-o, --outfile) - save output file name
hydr -o <filename.extension>