Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

no-eu

quaz42MIT2.0.0

Express middleware that blocks all EU traffic

eu, gdpr, express, node, middleware, block

readme

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