Country Codes
Utility to fetch country codes viz ISO2, ISO3 and Phone code of all the countries listed in http://countrycode.org/.
Exposes the below APIs:
- Pass in any of the PhoneCode,ISO2/ISO3 country code to get other details of the country.
- Get ISO2 country code.
- Get ISO3 country code.
- Get Phone code of country.
Version
0.0.5
Installation
npm install countrycodes
Examples
CountryCodes.getCountry > {"countryName":"India","iso2":"IN","iso3":"IND","phoneCode":"91"}CountryCodes.getISO2 > INCountryCodes.getISO2 > INCountryCodes.getISO2 > INCountryCodes.getISO3 > INDCountryCodes.getISO3 > INDCountryCodes.getISO3 > INDCountryCodes.getPhoneCode > 91CountryCodes.getPhoneCode > 91
License
BSD