Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilmielnik/grab-files
If you have a text file with a list of URLs pointing to files, this tool will download them for you
https://github.com/kamilmielnik/grab-files
Last synced: 7 days ago
JSON representation
If you have a text file with a list of URLs pointing to files, this tool will download them for you
- Host: GitHub
- URL: https://github.com/kamilmielnik/grab-files
- Owner: kamilmielnik
- License: mit
- Created: 2018-05-11T21:41:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T14:45:59.000Z (over 2 years ago)
- Last Synced: 2024-04-29T17:22:59.480Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 233 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grab-files
![Version](https://img.shields.io/github/package-json/v/kamilmielnik/grab-files)
![License](https://img.shields.io/npm/l/grab-files)
![Node version](https://img.shields.io/node/v/grab-files)
![Dependencies](https://img.shields.io/librariesio/github/kamilmielnik/grab-files)
![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/kamilmielnik/grab-files)
![Prettier](https://github.com/kamilmielnik/grab-files/workflows/Prettier/badge.svg)## Description
If you have a text file with a list of URLs pointing to files, this tool will download them for you.## Installation
`npm install -g grab-files`## Usage
### Syntax
`grab-files --input=[string] --output=[string] --timeout=[number] --preserve=[boolean]`### Example
`grab-files -i urls.txt -o download_dir`### Parameters
| Name | Alias | Default Value | Required | Example | Description |
|------------|-------|---------------|----------|---------------|-----------------------------------------------------------------------|
| `input` | `i` | `urls.txt` | no | `-i urls.txt` | input file with new-line separated urls |
| `output` | `o` | `download` | no | `-o download` | output directory |
| `timeout` | `t` | `200` | no | `-t 200` | time between subsequent requests in milliseconds |
| `preserve` | `p` | `true` | no | `-p true` | preserve original file names; set to `false` to use a number sequence |### Print version
`grab-files -v`