Country Code

ISO 3166-1 alpha-2

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://updategreasyfork.deno.dev/scripts/465957/1188611/Country%20Code.js

Aŭtoro
Schimon
Versio
23.04
Kreita
2023/05/10
Ĝisdatigita
2023/05/10
Size
6,16 kb
Licenco
MIT

Usage:

countryCode["DE"] // "Germany"

Example:

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

Solution:

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