https://github.com/juancrg90/url-updater
Updater URL CLI
https://github.com/juancrg90/url-updater
Last synced: 2 months ago
JSON representation
Updater URL CLI
- Host: GitHub
- URL: https://github.com/juancrg90/url-updater
- Owner: JuanCrg90
- License: mit
- Created: 2017-03-26T07:27:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T07:49:25.000Z (about 8 years ago)
- Last Synced: 2025-02-23T16:39:49.274Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# url-updater CLI
## Motivation
I regularly need to update URL's in multiple HTML and XML documents. this has become a repetitive work, so I decided to create a script which takes a group of files and update the url indicated with a new url. The script supports single file, directory and zip files.## Instalation
```bash
$ npm install -g url-updater
```## Usage
Update Single file:
```bash
$ url-updater -s http://site-to-search.com -r http://new-site.com file.html
```Update Directory
```bash
$ url-updater -s http://site-to-search.com -r http://new-site.com directory
```
Update Zip File
```bash
$ url-updater -s http://site-to-search.com -r http://new-site.com ZipFile.zip
```Update Only *href*
```bash
$ url-updater -s href="http://site-to-search.com -r href="http://new-site.com ZipFile.zip
```Update Only *href XML* files
```bash
$ url-updater -s href="http://site-to-search.com -r href="http://new-site.com ZipFile.zip
```## TODO
- [ ] Write test cases
- [ ] Add Coverage
- [ ] Improve error Messages
- [ ] Improve support for XML files
- [ ] Add Option to overwrite the original zip
- [ ] Improve Support for href update