https://github.com/bcdevices/ly10-rewrite
Simple wrapper to rewrite URLs for file downloads
https://github.com/bcdevices/ly10-rewrite
Last synced: 8 months ago
JSON representation
Simple wrapper to rewrite URLs for file downloads
- Host: GitHub
- URL: https://github.com/bcdevices/ly10-rewrite
- Owner: bcdevices
- Created: 2021-12-02T00:00:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-02T16:53:17.000Z (over 4 years ago)
- Last Synced: 2025-01-03T00:24:17.584Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rewrite
Rewrite is a simple wrapper around `wget` or file download cli. The sole purpose is to
substitute the download url with an alternative url.
## Usage
The basic usage command can be executed as `rewrite `.
This makes the following assumptions about the passed parameters:
* The first parameter is the fully qualified path to the config file location.
* The last parameter is the url
## Sample config file
```json
{
"urls": {
"https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.bz2": "https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.bz2"
}
}
```