JSPM

country-iso-2-to-3

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29121
  • Score
    100M100P100Q153980F
  • License MIT

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

Package Exports

  • country-iso-2-to-3

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (country-iso-2-to-3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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