0.0.4 • Published 2 years ago

@limesquid/express-putin v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

express-putin

Express middleware to reject requests from all Russian IPs.

Version License Node version Dependencies Build

Table of contents:

Usage

Basic

import express from 'express';
import putin from 'express-putin';

const app = express();

app.use(putin());

Customize response body and/or status code

import express from 'express';
import putin from 'express-putin';

const HTTP_I_AM_A_TEAPOT = 418;

const app = express();

app.use(putin({
  body: 'Russia, please stop the war!',
  status: HTTP_I_AM_A_TEAPOT,
}));

FAQ

Why did you name a package after a war criminal?

So that people never forget who is responsible for all this.

And because it's way more catchy than express-stop-russian-invasion-on-ukraine.