no-eu

2.0.0 • Public • Published

no-eu

Express middleware that blocks all EU traffic

Installation

npm install no-eu --save

Usage

const eu = require("no-eu");
const express = require('express');
const app = express();

app.use(eu( (req, res, location) => {
    console.log(location);
    res.send("Sorry you're in the EU");
}));

app.get('/', (req, res) => {
    res.send("Yay you're not in the EU");
});

app.listen(3000, () => {
    console.log('Example app listening on port 3000!')
});

Licence

MIT

Package Sidebar

Install

npm i no-eu

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

3.59 kB

Total Files

5

Last publish

Collaborators

  • quaz4