redirekt
1.1.0 • Public • Published redirekt
A library that provides a simple lightweight method for redirecting http requests in your applications!
Installation
Usage
Use redirekt
like this: redirekt(req, res, targetUrl)
!
var http = require('http');
var redirekt = require('redirekt');
var server = http.createServer(function (req, res) {
redirekt(req, res, 'http://www.themostamazingwebsiteimaginable.com');
});
Package Sidebar
Install
Weekly Downloads