0.2.3 • Published 10 years ago
redirecter v0.2.3
redirecter
Easy redirection
Example
var redirect = require("redirecter")
, http = require("http")
http.createServer(function (req, res) {
if (url === "/wrong") {
// redirect them to /right but also tell them you are a teapot
redirect(req, res, "/right", 418)
}
}).listen(8080)
Installation
npm install redirecter
Tests
make test
Contributors
- Raynos