New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

test-redirects

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-redirects

Write automated tests for your redirects.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 22 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc