0.2.3 • Published 10 years ago

redirecter v0.2.3

Weekly downloads
102
License
-
Repository
github
Last release
10 years ago

redirecter build status

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

MIT Licenced