2.3.8 • Published 12 months ago

@zerodep/geo-country v2.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@zerodep/geo-country

version language types license

CodeFactor Known Vulnerabilities

A parser to get country ISO codes and information from a country name or abbreviation; it will throw a ZeroDepError on failure.

Full documentation is available at the zerodep.app page.

geoCountryIso Examples

geoCountryIso('usa'); // 'US'
geoCountryIso('canada'); // 'CA'
geoCountryIso('great britain'); // 'GB'

geoCountry Examples

geoCountry(['es']);
// {
//   countryName: 'Spain',
//   countryIso2: 'ES',
//   countryIso3: 'ESP',
//   countryCode: 724,
// }

Unsuccessful Cases

geoCountryIso('unknown'); // thows ZeroDepError: Could not find a country for "UNKNOWN"

geoCountry('unknown'); // thows ZeroDepError: Could not find a country for "UNKNOWN"
2.3.8

12 months ago

2.3.6

12 months ago

2.3.7

12 months ago

2.3.4

1 year ago

2.3.2

1 year ago

2.3.1

2 years ago

2.3.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago