country-iso-3-to-2

1.1.1 • 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

Usage

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

getCountryISO2("BRA")
// "BR"

getCountryISO2("USA")
// "US"

API

getCountryISO2(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 © VTEX

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i country-iso-3-to-2

      Weekly Downloads

      28,614

      Version

      1.1.1

      License

      MIT

      Unpacked Size

      4.69 kB

      Total Files

      4

      Last publish

      Collaborators

      • vtexlab-user
      • lbebber
      • alcar
      • arturpimentel
      • felippenardi
      • alinevillaca
      • caio.oliveira
      • victorges
      • guilhermebruzzi
      • cmdalbem
      • iago
      • ntmedina
      • salesfelipe
      • diegoximenes
      • andreldsa
      • jgfidelis
      • vcalasans
      • thiagomurakami
      • marcoskwkm
      • lurian
      • rogerlucena
      • arthurepc
      • igorframos
      • gustavorosolem
      • analuizamtg
      • rafarubim
      • tergol
      • rafabac
      • bivillar
      • breno
      • guigs
      • daher
      • lucasecdb
      • victorhmp
      • marcosvcp
      • jeymisson
      • natalia_godot
      • tiagonapoli
      • r-araripe
      • augusto.lazaro
      • kaisermann
      • ericreis
      • athoscouto
      • tlgimenes
      • anitavincent
      • brunojdo
      • firstdoit
      • augustob
      • afonsopraca
      • amoreira
      • nandoacoelho
      • kevinchevallier
      • jardelymaris
      • denissilvavtex
      • eduardocesb
      • enzomerca
      • vinhags
      • zaedyvtex
      • filafb
      • bastotec
      • arthurtriis1vtex
      • geraldo.fernandes
      • georgebrindeiro
      • filipewl
      • emersonvtex
      • rodrigo.albuquerque
      • viniciuslouzadavtex
      • npedrosovtex
      • myllena.alves
      • mendescamara
      • mauro.takeda
      • lpolon
      • gianvittorio
      • eduardoformiga
      • vcnovaes
      • dpzvtex
      • wender
      • natamelo
      • mairatma
      • mayzabel
      • matheusps
      • emersonlaurentino
      • viniagostini
      • lucasaarcoverde
      • lariciamota
      • icazevedo
      • fabits
      • mateuspontes
      • gmantiqueira
      • vitorlgomes
      • rodolfoams
      • policarpo
      • marcelovicentegc
      • maianabt
      • jeffersontuc
      • hiagolcm
      • william.silva