https://github.com/karimsa/pull
Download files using HTTP range requests.
https://github.com/karimsa/pull
Last synced: 3 months ago
JSON representation
Download files using HTTP range requests.
- Host: GitHub
- URL: https://github.com/karimsa/pull
- Owner: karimsa
- Created: 2019-06-26T05:57:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T07:46:20.000Z (over 2 years ago)
- Last Synced: 2025-03-11T21:03:58.239Z (3 months ago)
- Language: JavaScript
- Homepage: https://npmjs.org/@karimsa/pull
- Size: 489 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @karimsa/pull
Download files using HTTP range transfers.

**Note on performance:** Downloading using ranges improves download performance but is network bound, not CPU bound. So depending on your network, you should set your own concurrency limit. The default is 2 * CPUs.
On my network, a 20MB file with `curl` downloads in ~20s. With a concurrency of 8, this goes down to 6-8s with `pull`.
## Usage
Install via npm - `npm install -g @karimsa/pull` or use via npx `npx @karimsa/pull`.
```bash
$ pull "http://mydomain.com/large-file.zip"
```To see a help message, use `pull --help`.
## License
Licensed under MIT license.
Copyright © 2019-present Karim Alibhai.