1.0.2 • Published 6 years ago

rewrite-url-follower v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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