jreina / express-troll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License?

MIT

About

License:MIT License


Languages

Language:JavaScript 100.0%