1.0.3 • Published 2 years ago

country-data-helpers v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago