tr

test-redirects

Write automated tests for your redirects.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

3

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

test-redirects

Write automated tests for your redirects.

Screenshot

npm styled with prettier Build Status Code Climate Dependency Status

Testing that your web server is configured correctly can be a pain. You want to make sure your users will always get to the correct location but manually testing this is slow, tedious and error-prone.

Installation

npm install -g test-redirects

Usage

test-redirects

The script will look for a file called test-redirects.json. This file should contain an object where the keys are the origin url and values are the expected destination after being redirected.

{
  "http://npmjs.com": "https://www.npmjs.com/",
  "http://www.npmjs.com": "https://www.npmjs.com/",
  "https://npmjs.com": "https://www.npmjs.com/",
  "https://www.npmjs.com": "https://www.npmjs.com/",
  "https://www.npmjs.com/": "https://www.npmjs.com/"
}

License

MIT © Wayne Ashley Berry

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial