country-data-helpers
v1.0.3
Published
exports getCountryDataByCountryName class with 2 methods, getAllData and getCountryCodeByCountryName. getAllData returns an array containing all available data about each country based on the following csv file: https://github.com/lukes/ISO-3166-Countries
Downloads
3
Readme
exports getCountryDataByCountryName class with 2 methods, getAllData and getCountryCodeByCountryName. getAllData returns an array containing all available data about each country based on the following csv file: https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv
getCountryDataByCountryName method takes in one parameter as an argument, a string of the country name, the first letter of each appropriate word being capitalized, and returns the ISO-3166 country code for that country.