redirects
Express/Connect middleware for segment-able url redirects
Install
npm install redirects --save
Usage
var http = ;var connect = ;var redirects = ; var app = ; app; http;
Usage Options
Basic redirect
var connect = ;var redirects = ; var app = ; app; http;
Redirect with custom status code
var connect = ;var redirects = ; var app = ; app; http;
Segmented value redirect
Any value in the url that begins with a :
will be considered a segment. This segment will replace the same value in the redirect url. This usage also works like the cusotm status codes example.
var connect = ;var redirects = ; var app = ; app; http;
Run Tests
npm install
npm test