Detect if a user is from a country around the European Union (EU), EFTA, EEA, or Schengen area based on their timezone settings.
npm i detect-europe-js
European Union (EU) countries
EU countries + Iceland, Liechtenstein and Norway
Switzerland + Iceland, Liechtenstein and Norway
Schengen countries (including Romania, Bulgaria, and several microstates)
import { isFromEU } from 'detect-europe-js';
if(isFromEU()) {
// show cookie banner
}