1.0.1 • Published 4 years ago

@johnny.reina/express-troll v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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