Convert a country code ISO 3166-1 Alpha-3 to ISO 3166-1 Alpha-2
$ npm install country-iso-3-to-2
const getCountryISO2 = require("country-iso-3-to-2");
getCountryISO2("BRA")
// "BR"
getCountryISO2("USA")
// "US"
Parameter: A string with a country code in ISO 3166-1 Alpha-3
Return: A string with the country code in ISO 3166-1 Alpha-2
MIT © VTEX