@azzamdaaboul/country-iso-3-to-2

1.0.0 • Public • Published

country-iso-3-to-2

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

Install

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

Example of usage:

getCountryName("SYR")
//'SY'

getCountryName("BEL")
//'BE'

API

getCountryName(countryCode)

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


License

MIT © Azzam DAABOUL

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @azzamdaaboul/country-iso-3-to-2

      Weekly Downloads

      2

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      5.34 kB

      Total Files

      5

      Last publish

      Collaborators

      • azzamdaaboul