@johnny.reina/express-troll
v1.0.1
Published
An Express middleware to redirect common admin or login paths to a custom URL. Rickrolls by default.
Downloads
3
Readme
express-troll
An Express middleware to redirect common admin or login paths to a custom URL. Rickrolls by default.
Inspired by a tweet. Because why not.
Installing
npm i @johnny.reina/express-troll
Using
const app = express();
const { troll } = require("@johnny.reina/express-troll");
app.use(troll()); // Will redirect to https://www.youtube.com/watch?v=dQw4w9WgXcQ
// OR specify a URL
app.use(troll("https://example.com"));
Which paths get redirected?
The list can be found here