1.0.1 • Published 1 year ago
country-code-mapper v1.0.1
Country-Code-Mapper
Mapping source: https://www.nationsonline.org/oneworld/country_code_list.htm Country flag source: https://flagpedia.net/download/icons
Personal sideproject for practice Author: JPcooper4589262@gmail.com
How to use:
countryCodeMapper.getCountryNameList() // return an array of country names countryCodeMapper.getCountryCodeList() // return an array of country codes countryCodeMapper.getCountryName("GB") // input country code and return the mapping country name countryCodeMapper.getCountryCode("Japan") // input country name and return the mapping country code countryCodeMapper.getCountryFlag("GB") // input country code adn return the country flag icon