eu-country-check
This package is to check if the given country-code/country-name is part of the EU (European Union) or EEA (European Economic Area).
Installation
npm i eu-country-check
or
yarn add eu-country-check
Then...
import { isEUCountry, isEEACountry } from "eu-country-check";
console.log(isEUCountry("040"));
console.log(isEEACountry("NO"));
console.log(isEUCountry("NO"));
console.log(isEEACountry("CA"));
Functions
eu-country-check contains 2 functions:
isEUCountry(countryCode: string)
isEEACountry(countryCode: string)
~ "countryCode" is required parameter that could be name, alpha2, alpha3 or numeric code.
⚖️ LICENSE
MIT © Sunny-unik/eu-country-check