rewrite-url-follower

1.0.2 • Public • Published

Rewrite URL Follower

Build Status

npm On-Site and npm-registry-couchapp store package URLs in their database. These URLs represent the full canonical path to package tarballs. If the database ends up with the wrong URL for a package it will become inaccessible.

Situations which can result in an invalid URL:

  • the wrong URL was written to the database
  • the URLs contain the external IP address of the registry and the IP has changed
  • the URLs contain the external domain name of the registry and the domain has changed

rewrite-url-follower solves this problem! simply point this tool at your CouchDB database, and it will rewrite the package URL for you.

Usage

rewrite URL to http://10.19.99.196:8080:

rewrite-url-follower rewrite --rewrite=http://10.19.99.196:8080 --host=172.17.0.1 --port=5984

rewrite URL to https://myreg.mydomain.tld:

rewrite-url-follower rewrite --rewrite=https://myreg.mydomain.tld --host=172.17.0.1 --port=5984

get help:

rewrite-url-follower --help
rewrite-url-follower rewrite --help

License

ISC

Readme

Keywords

Package Sidebar

Install

npm i rewrite-url-follower

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

48.4 kB

Total Files

11

Last publish

Collaborators

  • bcoe
  • buzuli