@johnny.reina/express-troll

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @johnny.reina/express-troll

    Weekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    13.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • johnny.reina