sjehuda / Country Code

Published:

Version: 23.04+6a084dd updated

Summary: ISO 3166-1 alpha-2

Homepage: https://openuserjs.org/libs/sjehuda/Country_Code

Copyright: 2023, Schimon Jehudah (http://schimon.i2p)

License: MIT

Usage:

countryCode["DE"] // "Germany"

Example:

nationCode = "de"
countryCode[nationCode] // undefined

Solution:

nationCode = nationCode.toUpperCase()
countryCode[nationCode] // "Germany"

Rating: 0