A simple redirect server using the http library.
npm install @regionhalland/simple-redirect-server> A simple redirect server used for redirecting old to new sites using a csv file. See example folder for more information.
```
$ npm install @region-halland/simple-redirect-server
`js
var srs = require('@region-halland/simple-redirect-server');
//Init server
srs.init({
portListen: 1337, //HTTP server will listen on this port
httpStatusCode: 301, //This will be the http code used for redirections
csvFile: __dirname + "/redirects.csv" //Path to csv file used for redirections
});
``
GPL-2.0 © Region Halland