Check if given countryCode is part of the European countries
npm install eu-country-checkbash
npm i eu-country-check
`
or
`bash
yarn add eu-country-check
`
Then...
`typescript
import { isEUCountry, isEEACountry } from "eu-country-check";
console.log(isEUCountry("040")); // { name: 'Austria', alpha2: 'AT', alpha3: 'AUT', numeric: '040' }
console.log(isEEACountry("NO")); // { name: 'Norway', alpha2: 'NO', alpha3: 'NOR', numeric: '578' }
console.log(isEUCountry("NO")); // undefined
console.log(isEEACountry("CA")); // undefined
`
Functions
eu-country-check contains 2 functions:
- isEUCountry(countryCode: string)
- isEEACountry(countryCode: string)`