Middleware to redirect 'Old Browsers' to an alternative page

Since
  • 1.0.0
Author
  • Glenn de Haan

Example

const {Runtime, Server} = require('@neobeach/core');
const oldBrowser = require('@neobeach/middlewares-old-browser');

const server = new Server();

Runtime(() => {
   server.loadMiddlewares([oldBrowser(['Chrome >= 41', 'Firefox >= 13', 'Safari >= 10', 'IE >= 99', 'Edge == All'], false)]);
   server.run();
});