Skip to content

Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3

Notifications You must be signed in to change notification settings

alvaradojl/country-iso-2-to-3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

country-iso-2-to-3

Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3

Install

$ npm install country-iso-2-to-3

Usage

const getCountryISO3 = require("country-iso-2-to-3");

getCountryISO3("BR")
// "BRA"

getCountryISO3("US")
// "USA"

API

getCountryISO3(countryCode)

Parameter: A string with a country code in ISO 3166-1 Alpha-2

Return: A string with the country code in ISO 3166-1 Alpha-3


License

MIT © VTEX

About

Convert a country code ISO 3166-1 Alpha-2 to ISO 3166-1 Alpha-3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%