is-european
Version:
Check if a country is part of EU (European Union) or EEA (pean Economic Area). ISO 3166-1 compliant
42 lines (28 loc) • 1.54 kB
Markdown
# is-european

[](https://coveralls.io/github/Kikobeats/is-european)
> Check if a country is part of the EU (European Union) or EEA (European Economic Area). ISO 3166-1 compliant.
## Install
```bash
$ npm install is-european --save
```
## Usage
```js
const { eeaMember, euMember } = require('is-european')
euMember(578) // => false
euMember('NO') // => false
euMember('NOR') // => false
euMember('Norway') // => false
eeaMember(578) // => true
eeaMember('NO') // => true
eeaMember('NOR') // => true
eeaMember('Norway') // => true
```
## Related
- [req-country](https://github.com/Kikobeats/req-country) – Given a request, get the country associated with it. ISO 3166-1 alpha-2 compliant.
- [country-vat](https://github.com/Kikobeats/country-vat) – Get a country VAT rate. ISO 3166-1 compliant.
- [tom.js.org](https://tom.js.org) – tom 🐶 is a backoffice for your projects.
## License
**is-european** © [Kiko Beats](https://kikobeats.com), released under the [MIT](https://github.com/Kikobeats/is-european/blob/master/LICENSE.md) License.<br>
Authored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/Kikobeats/is-european/contributors).
> [kikobeats.com](https://kikobeats.com) · GitHub [Kiko Beats](https://github.com/Kikobeats) · X [@Kikobeats](https://x.com/Kikobeats)