# url-updater

> CLI Tool for update links in a zip file

Latest version **1.0.1** (published 2017-03-26) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install url-updater
pnpm add url-updater
yarn add url-updater
bun add url-updater
```

Provides the command `url-updater`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-03-26 |
| First published | 2017-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Juan Carlos Ruiz |
| Maintainers | juancrg90 |
| Keywords | search, and, replace, zip, unzip |

## Links

- npm: https://www.npmjs.com/package/url-updater
- Repository: https://github.com/JuanCrg90/url-updater
- Homepage: https://github.com/JuanCrg90/url-updater#readme
- Issues: https://github.com/JuanCrg90/url-updater/issues
- npm.io page: https://npm.io/package/url-updater

## Dependencies (3)

- [replace](https://npm.io/package/replace.md) ^0.3.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.7.7
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-03-26
- 1.0.0 — 2017-03-26

## 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=&quot;http://site-to-search.com -r href=&quot;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

---
_Source: https://npm.io/package/url-updater · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
